Please make me clear about "What is Polymorphism in C++?" with simple words...and terms...!! please..!!
Hey, Polymorphism in C++ occurs when there is a hierarchy of classes and they are related by inheritance.It means many forms. For more information,read “ http://www.tutorialspoint.com/cplusplus/cpp_polymorphism.htm “
Polymorphism is a Greek work, it means having multiple forms. Polymorphism is an pattern in Object Oriented Programming in which we the classes share same interface with different functionality. A real world example for polymorphic is a button. Everyone knows how to use a button: you simply apply pressure to it. What a button does depends on the context it is used and what it is connected to. When some one tells you to press the button You already have all the information needed to perform the task.
The word polymorphism means having many forms.In simple words,polymorphism is the ability of a message to be displayed in more than one form. Real life example of polymorphism, a person at a same time can have different characteristic. Like a man at a same time is a father, a husband, a employee. So a same person posses have different behavior in different situations. This is called polymorphism.
The word polymorphism means having many forms. Typically, polymorphism occurs when there is a hierarchy of classes and they are related by inheritance. C++ polymorphism means that a call to a member function will cause a different function to be executed depending on the type of object that invokes the function.
This is one of the best explanations I've seen. I think the novice is hard to understand why polymorphism is needed. I think almost all the principles of OOP are aimed at creating a concise code, reusing the code, etc.