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 does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Compiler error: Lvalue required

15 Answers   ISTS, Wipro,


Why do we use class in oops?

0 Answers  


Explain the concepts involved in Object Oriented programming.

0 Answers   Wipro,


how can we design a magic square in c++?or suggest me the basic idea of it.

3 Answers  


write a C++ program for booking using constructor and destructor.

0 Answers   HAL,






can we make a class static without using static keyword?

5 Answers   Aspire,


What is a scope operator and tell me its functionality?

3 Answers   emc2,


Generally, in all C++ programs, texts are in white colour. Can we change the colour of the text(either input or output or both)? If so, help me out.

1 Answers  


oops concept is used for?

3 Answers   Synergy,


any one please tell me the purpose of operator overloading

0 Answers   Amazon,


Can we define a class within the interface?

0 Answers  


Can we have a private constructor ?

12 Answers   HSBC, Ness Technologies, TCS, Wipro,


Categories