Showing posts with label Oops. Show all posts
Showing posts with label Oops. Show all posts

C++ OOPs Part2

Polymorphism & Overloading

Polymorphism 

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.