R
.rhavin grobert
guess you have two classes (A and B) and you have two objects (C1 and
C2) of a class C that is defined as
class C: public A, public B
can I *somehow* swap B of C1 and B of C2? To make myself clearer:
class C1 and C2 both have some area in memory that holds their B-Part
- i guess there must be somewhere in class C1 and C2 a kind of pointer
to that baseclasses. Eg. if you do a (B*) this inside C1 you get it.
What i want to do is swap the pointers.
Is that somehow possible?
thx in advance, .rhavin
C2) of a class C that is defined as
class C: public A, public B
can I *somehow* swap B of C1 and B of C2? To make myself clearer:
class C1 and C2 both have some area in memory that holds their B-Part
- i guess there must be somewhere in class C1 and C2 a kind of pointer
to that baseclasses. Eg. if you do a (B*) this inside C1 you get it.
What i want to do is swap the pointers.
Is that somehow possible?
thx in advance, .rhavin