overriding abstract methods in an inherited abstract class

前端 未结 2 1110
天命终不由人
天命终不由人 2021-02-08 21:04

Okay so basically I have the following problem: I\'m trying to have an abstract class inherit another abstract class that has an abstract method, but I don\'t want to implement

2条回答
  •  长发绾君心
    2021-02-08 21:28

    Just omit the declaration of execute() in Binary at all. Since Binary is abstract as well, you don't have to implement any abstract methods of its ancestors.

提交回复
热议问题