Content deleted Content added
clarified the difference between an interface and an abstract class. Tags: Reverted Mobile edit Mobile web edit |
Reverted 1 edit by 174.26.254.54 (talk) to last revision by Klbrain |
||
Line 5:
One benefit of using interfaces is that they simulate [[multiple inheritance]]. All classes in Java must have exactly one [[base class]], the only exception being {{Javadoc:SE|package=java.lang|java/lang|Object}} (the [[top type|root class]] of the Java [[type system]]); [[multiple inheritance]] of classes is not allowed. However, an interface may inherit multiple interfaces and a class may implement multiple interfaces.
== Overview ==
|