Monday, December 31, 2018

Inheritance & Polymorphism


Inheritance & Polymorphism

The main difference is polymorphism is a specific result of inheritancePolymorphism is where the method to be invoked is determined at runtime based on the type of the object. This is a situation that results when you have one class inheriting from another and overriding a particular method.

No comments:

Post a Comment

Which Python course is best for beginners?

Level Up Your Python Prowess: Newbie Ninjas: Don't fret, little grasshoppers! Courses like "Learn Python 3" on Codecade...