Interface
Interface:
- blueprint of a class.
- static constants and abstract methods only.
- mechanism to achieve fully abstraction
- Java Interface also represents IS-A relationship.
- By interface, we can support the functionality of multiple inheritance.
- It can be used to achieve loose coupling.
- Class implements interface
- interface extends interface
No similar posts
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment