This may sound silly, I don't know.
class Example {
private:
Example x;
public:
//Methods
};
It is possible in JAVA, but in C++ it is showing error. (field 'x' has incomplete type )
How can I do this in C++? If not what are other ways to do the same. I know one, pointers :) Anything else?
Also, I would be happy to know, what restricts to do the same in C++.
Thanks.