The below is my code design
class D;
class A {
D *d;
class B:public C {
somefunctions();
}
}
class C {
//I need to use class D variables inside Class C
}
Whatever I do inside the Class C for bringing Class D variables, it is throwing Invalid use of Incomplete 'Class D' and Forward declaration of 'class D'. The thing is we can't move the class positions. Need your help, Please give suggestions with examples. Thanks in advance for your help