C++ Programming Question:
What is polymorphism in C++?

Answers:
Answer #1
Polymorphism in C++ is the idea that a base class can be inherited by several classes. A base class pointer can point to its child class and a base class array can store different child class objects.
Polymorphism in C++ is the idea that a base class can be inherited by several classes. A base class pointer can point to its child class and a base class array can store different child class objects.
Answer #2
Plymorphism means more than one type or more than one same name .
It is an OOp feature that allows you to create More than One Class with Similar name . also known as Overriding .
Plymorphism means more than one type or more than one same name .
It is an OOp feature that allows you to create More than One Class with Similar name . also known as Overriding .
Previous Question | Next Question |
How do you write a function that can reverse a linked-list in C++? | How do you find out if a linked-list has an end? (i.e. the list is not a cycle) |