How do I initialize an instance of one class within another (Im new sorry)

前端 未结 0 773
陌清茗
陌清茗 2020-11-30 03:34

Okay I\'m making a fake amusement park ride, I have a tram class that just has a max # of stops for the init paramater, and a move method that adds 1 to the current station.

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