C++ Problems with inheritance. My variable of the class Child doesn't print the right variable

前端 未结 0 677
你的背包
你的背包 2020-12-15 11:01

I have a problem with inheritance. I have a class named Parent, and a class name Child. When I want to print the variable "age", it shows me the wrong number :

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