What is polymorphism? Explain with an example.

Answer Posted / syed ahsen raza ali

polymorphism basicilly provides multiple forms to a single
function or functionality to occure.in c++(oop) context i
can quote that using 0ne functionality if we could be able
to have multiple functionalities working only on a single
object,then we can say that we had done multiple tasks by
using one operation.

thanks.

Is This Answer Correct ?    47 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

c++ program to swap the objects of two different classes

1761


What is meant by multiple inheritance?

736


What is encapsulation in oops?

534


Which type does string inherit from?

614


What are the benefits of interface?

577






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

2042


Can main method override?

583


What are main features of oop?

631


Explain the concepts involved in Object Oriented programming.

629


Can an interface inherit a class?

557


What is difference between polymorphism and inheritance?

617


What is overloading and its types?

612


What is the difference between abstraction and polymorphism?

613


What is polymorphism and example?

590


what type of question are asked in thoughtworks pair programming round ?

1758