What is polymorphism in C++?

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.

0 comments:

Post a Comment

Blogger news