C++ | Is polymorphism the best way to achieve this? (regarding function calls in derived classes)

后端 未结 0 1475
醉话见心
醉话见心 2020-12-28 19:06

I have a program that has four classes:

  • Vehicle (Base)
  • Automobile (Derived from Vehicle)
  • Car (Derived from Automobile)
  • Truck (Derived
相关标签:
回答
  • 消灭零回复
提交回复
热议问题