Depending on what you want, this might be:
- class extends aClass
- class implements anInterface
- The interface extends the interface.
You can extend only one class / interface and implement many interfaces. You can extend the interface to another interface, for example. The DieselEngineInterface interface extends the EngineInterface interface.
I also want to note a comment, now that you can have a hierarchy of classes and interfaces, you need to know when to use them.
source share