The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 (Not So) Stupid Questions 5: Inheritance Versus Interfaces
Subject:  When should I implement an interface, over inheriting from a parent class?
Date:  2006-01-30 10:28:23
From:  swatdba
Response to: When should I implement an interface, over inheriting from a parent class?


I think this is a very good point. A class realizes an interface whereas inherits from a superclass. Without inheritance we would moving back to the same one dimensional world as was true with procedural. However that one dimension would be behavior rather than state.

 Feed java.net RSS Feeds