Inheritance and Polymorphism

Inheritance is a parent-child relationship between the classes.  You can also think of 'is a' relation between them as in Professor 'is a' Person.

Polymorphism is slightly harder concept to understand where a class behaves in more than one way.  You will learn these concepts with concrete example.



Last modified: Sunday, 3 January 2021, 9:50 PM