Junior — Senior
Interrelated classes with mutual pointers
livecode
Task condition
It is necessary to create two classes, each containing a pointer to an object of the other class. The declaration of such classes should be properly formatted, taking into account the compiler's requirements, in particular the need for a forward declaration.
class A {
// pointer to B
};
class B {
// pointer to A
};