Interface support functionality of multiple inheritances.
Interface has les cupping.
It is use to fully abstraction
Multiple
inheritances is not support in java so how we can use in interface multiple
inheritance:-
It is supported because of implementation provide by
implementation.
Nested interface:-
·
Nested interface must be public if it is declaration
inside of interface but it can have access modifiers if declaration within
class
·
Nested interface are declare as static.
·
Inside the interface we can define class it is
possible to declare class in side of interface.
No comments:
Post a Comment