O
omveer.chaudhary
Hi,
I'm trying below scenario:
class xx
{
xx(){}
friend class yy;
};
class yy: virtual public xx
{
public:
yy(){}
};
class zz
ublic yy
{
public:
};
Q1: It doesn't work with ZZ obj; Please help me understanding it.
class xx
{
xx(){}
friend class yy;
};
class yy: public xx
{
public:
yy(){}
};
class zz
ublic yy
{
public:
};
Q2: After removing virtual, it works for zz obj;. Why and how?
Thanks in advance.
Regards
I'm trying below scenario:
class xx
{
xx(){}
friend class yy;
};
class yy: virtual public xx
{
public:
yy(){}
};
class zz
{
public:
};
Q1: It doesn't work with ZZ obj; Please help me understanding it.
class xx
{
xx(){}
friend class yy;
};
class yy: public xx
{
public:
yy(){}
};
class zz
{
public:
};
Q2: After removing virtual, it works for zz obj;. Why and how?
Thanks in advance.
Regards