I'm not a C++ guru, navigating some code from an open source project trying to resolve an issue we have with the Java interface and the documentation is terrible. We've resolved that it may be due to the fact that a cloned object is what is used and not the originally instantiated object. The clone is created in the following method:
Base* Computer::Clone() const
{
Base *clone = new Computer(*this);
return (clone);
}
Computer is a subclass of Base so it returns a pointer to a Base object, created using the constructor of the same class, Computer and is done so via dereference (I believe thats what this is called here) with *this.
Now assuming Computer has an attribute bool isModeConfigured, if that is set to false for the original object, if the clone sets its to true does that replicate through? My inclination here is to say no, given the use of new.