mercredi 24 août 2016

c++ Object in class

Let say I want to have field with class B in object A

And field with class A in object B

psado code:

class A{
protected:
B my_B_Object
}

class B{
protected:
A my_A_Object
}

This doesn't make the compilation

Any idea how to make it work?

Aucun commentaire:

Enregistrer un commentaire