Acessing subclass variable from base class object

后端 未结 0 1673
不知归路
不知归路 2021-02-01 18:18

Let\'s say i\'m having the following classes in c++

class Animal{}
class Dog extends Animal {
    int barkingVolume;
}

H

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