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.
Abonnieren
Kommentare zum Post (Atom)
Keine Kommentare:
Kommentar veröffentlichen