Friday, May 24, 2019

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. ... However, in a normal inheritance tree, you don't have to override any methods and therefore not all method calls have to be polymorphic.

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...