A class
can only "implement" an interface
. A class only "extends" a class
. Likewise, an interface
can extend another interface
.
A class
can only extend one other class
. A class
can implement several interface
s.
If instead you are more interested in knowing when to use abstract class
es and interface
s, refer to this thread: Interface vs Abstract Class (general OO)