Is there a way to modify the private variables of a child class using an inherited method in C++?

前端 未结 0 570
轮回少年
轮回少年 2020-12-25 12:34

I have a class Child that inherits from a class Parent. They both have a private instance variable named a. The parent class has a method to change the a<

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