Problem overridding virtual function

后端 未结 3 1832
灰色年华
灰色年华 2020-12-21 10:41

Okay, I\'m writing a game that has a vector of a pairent class (enemy) that s going to be filled with children classes (goomba, koopa, boss1) and I need to make it so when I

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-21 11:26

    Your virtual keyword is correctly placed, you need to use pointers or references though.

提交回复
热议问题