What is polymorphism with example in C++?

Polymorphism in C++ 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 . Consider the following example where a base class has been derived by other two classes −

Sizin İçin Seçtik  Is iOS easier to develop for than Android?

Leave a Reply

Your email address will not be published. Required fields are marked *