Returning any derived class type from a method outside the base and derived class

前端 未结 0 1477
后悔当初
后悔当初 2021-02-04 00:49

So I have 3 classes: BaseInfo, CarInfo, and PetInfo. The BaseInfo class is the base class. CarInfo inherits from BaseInfo and has properties related to a car. Finally, PetInfo a

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