Karatas, FERHAT
I would love to change the world, but they won't give me the source code!
Abstract Classes versus Interfaces
28.02.2007 11:59:11 - Filed under : Java
Unlike interfaces, abstract classes can contain fields that are not static and final, and they can contain implemented methods. Such abstract classes are similar to interfaces, except that they provide a partial implementation, leaving it to subclasses to complete the implementation.
If an abstract class contains only abstract method declarations, it should be declared as an interface instead.
Multiple interfaces can be implemented by classes anywhere in the class hierarchy, whether or not they are related to one another in any way.

Keywords : Abstract classes are similar to interfaces, except that they provide a partial implementation.
with 0 comments

What do you think ?
Security Code 6832
Check S. Code
Name  
Email  
Home Page  
Comments