Hi All, This time I am back with a most controversial topic among java beginners. Yes, Its Abstract Class v/s Interface.
Most of the developers prefer using Interfaces over abstract class for the following reasons.
- Any Class can be modified to implement the Interface, not necessarily the hierarchical type.
- Loosely coupled.
- Interfaces enable safe, powerful functionality enhancements.
- Overcome effect of absence of Multiple Inheritence
released and widely implemented, it is almost impossible to change". so Interfaces need to be designed more carefully than an abstract class.
No comments:
Post a Comment