java force an extending class

前端 未结 6 1327
梦毁少年i
梦毁少年i 2020-12-31 00:17

In Java, can I somehow force a class that extends an abstract class to implement its constructor with a Object as a parameter?

Something like

public          


        
6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 00:52

    EDIT

    Well, no, its not possible to force the implementation of a constructor with argument.

提交回复
热议问题