INTERFACES
INTERFACES
Advantages:---
– In multi-level inheritance , when an application is
dealing with the lowest level class , then the run-
time JVM will create in an order the constructor of
all the above super class resulting in objects that
might not be used in the applications.
– Interfaces will avoid this
INTERFACES
mi = new MyIfImpl2 ( );
mi.xyz();
mi.pqr(); X
INTERFACES