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