Donnerstag, 24. Juli 2008

Abstract Class vs. Interface

Abstract Class: can have non-abstract method; can have member variables; all the abstract methods must be overwritten in the extended classes.

Interface: describe some common rules, thus all methods are abstract; all member variables must be final static; In java, interface can be used for multi-inheritance purpose.

Keine Kommentare: