how to extend a abstract class in java
问题 I have a made an engine class that is as follows. based on Engine: Interface that extends Java’s Comparable (to compare among engines) and declares an integer getter method “getForce”, which indicatesthat engine subclasses will have a force they are capable of producing. public interface Engine extends Comparable<Engine>{ public int getForce(); } I am trying to make an AbstractEngine class based on the following description. AbstractEngine : Abstract class implemented by most engines. It