could someone explain me this kind of "inheritance" which can be found in class Y: private?
class X
{
private: char c_;
public: X(char c) : c_(c){}
};
class Y
{
private: X x_; // What is this ?
public: Y(X x): x_(x){}
};
int main()
{
X m('a');
Y *test = new Y(m);
delete test;
return 0;
}