Why calling parent's method works on all its children instances?

前端 未结 0 828
被撕碎了的回忆
被撕碎了的回忆 2020-12-06 01:03

I have a parent class in C++ with a method and declared two instances of its children classes. When I call this method on one child instance it makes changes to both childre

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