Showing posts with label oops. Show all posts
Showing posts with label oops. Show all posts
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
Subscribe to:
Posts
(
Atom
)