Is it possible to use other classes methods by just passing the class as an argument to other class?

前端 未结 0 1357
谎友^
谎友^ 2021-02-15 07:43

Is it possible to have a class that inherits from other class, but by passing the child class as an argument of the parent\'s class?

Something like this:

c         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题