Use of Methods Defined in Parent but overridden in child class
This algorithm also works for the case when the method is overridden
Class:
method A
Definition of method
is given in parent
Class:
Class:
method A
Class:
Class:
Object2
Object1
Object1 creates object2
and calls object2.A
Previous slide
Next slide
Back to first slide
View graphic version