Inheritance & Polymorphism
The main difference is polymorphism is a specific
result of inheritance. Polymorphism 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