Interface
Interface is a mechanism to achieve fully abstraction. It's look looks like as class but not a class. It solve is with a powerful construct called interface.
It can be used to fully abstraction, generic template and multiple inheritance in java. It a blueprint of a class.
Disadvantage of interface:
- Interface are slower and more limited than other ones.
- Interface should be used multiple number of times otherwise it hardly any use of having them.
No comments:
Post a Comment