P
pnp
I have two objects AA and AB that derive from object A. These two
objects have common atts that they inherit from object A but also some
of their own.
I have a pointer to an AA object and i would like to turn it to a
pointer to an AB object, but maintaining the common information of these
objects, such as the atts for example.
How can I do this?
objects have common atts that they inherit from object A but also some
of their own.
I have a pointer to an AA object and i would like to turn it to a
pointer to an AB object, but maintaining the common information of these
objects, such as the atts for example.
How can I do this?