Difference ways of Polymorphism?

Answers were Sorted based on User's Feedback



Difference ways of Polymorphism?..

Answer / zeeshan

Polymorphism can be achieved by two ways:
1.Overloading 2.Overriding
1.Overloading: Overloading means methods have same name but
different arguments it can be achieved at Compile Time.
1.Overriding: Overloading means when we make method virtual
in base class and we also want that it also used in child
then we use override keyword for that method and and it can
be achieved at Run Time.

Is This Answer Correct ?    21 Yes 1 No

Difference ways of Polymorphism?..

Answer / siva sankari

lets take some eg:

6+3=9 //here '+'operator used as addition
siva+sankari=sivasankari //here '+' operator used as
concatenation
the same function which acts as diff place in diff meaning
is called polymorphism............

Is This Answer Correct ?    2 Yes 0 No

Difference ways of Polymorphism?..

Answer / sanjeevkumar.v

polymorphism it means the function may be different . and so
that are different forms

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More OOPS Interview Questions

What is a linked list?

7 Answers   IBM, Neural Info,


Can we create object of abstract class?

0 Answers  


What is coupling in oop?

0 Answers  


write a program to find 2 power of a 5digit number with out using big int and exponent ?

0 Answers  


What is sub classing in c++?

1 Answers  






who is the father of OPPS

4 Answers   Infosys, TCS,


What is Inheritance, Multiple Inheritance, Shared and Repeatable Inheritance?

4 Answers   Accenture, L&T,


WAP find square root of any number (without using sqrt() )?

3 Answers  


Explain virtual inheritance?

0 Answers  


Why do we need oop?

0 Answers  


Why static Function is used in C++?

4 Answers   TCS,


What is virtual class and friend class?

5 Answers   IBS, Intel, Wipro,


Categories