jungblut@gmdzi.gmd.de (Achim Jungblut) (03/21/91)
Hi out there.
This is my first posting to this group, so don't be offended if i'm asking
nonsense or something which is obvious to you.
So here is my problem:
Let X be a base class, A and B are derived classes.
class X {
// class X members
};
class A : public X {
// class A stuff
};
class B : public X {
// class B stuff
// A-stuff and B-stuff are disjoint
};
So here my Question:
Is it possible to convert an A-instance to a B-instance (and vice versa)
without creating the X-Part and coping the old X-Part into the new created ?
Thanx in advance
Gerd