Sunday, January 31, 2016

[Java] Abstract and Interface

Abstract "is A"  abstraction of class

Can have member and non-abstract methods

Interface "like A" abstraction of behavior

ISP : Interface Segregation Principle : several specialized interfaces is better than mono interface with multiple behaviors.

No comments:

Post a Comment