Hi,
let's say I define this two classes that do not inherit from one another.
I get an error at line 10: field "DataNoFather" has incomplete type.
1.Any idea what that means and how to fix it?
2. Is it possible to have a variable like DataNoSon labeled with type NoFather? (like I have in line 21)
thanks
class NoFather
{
public:
NoFather();
~NoFather();
NoFather GetDataNF() const;
NoFather SetDataNF();
private:
NoFather DataNoFather;
};
class NoSon
{
public:
NoSon();
~NoSon();
private:
NoFather DataNoSon;
};