I have a base class that is inherited into a derived class. I then instantiate both base and derived objects.
class Base
{ public :
Base() {}
~Base) {} };
class Derived : public Base
{ public :
Derived() {}
~Derived() {} };
Base b;
Derived d;
Derived::Base::d = b;
Now I'd like to copy the base class object (b) into the derived class object (d) in place of it's inherited base class. Any ideas on the syntax?