Force Initializing Class to Use Method?

前端 未结 0 1787
难免孤独
难免孤独 2021-02-09 09:54

Is there a way to force the class/component initializing a certain class to call one of its functions?

Ex:

class Car
{
  public destroy(){...}
}

class Bom         


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