Which among the following is correct for the following code?
class A
{
public : class B
{
public : B(int i): data(i)
{
}
int data;
}
};
class C: public A
{
class D:public A::B{ };
};
- Multi-level inheritance is used, with nested classes
- Multiple inheritance is used, with nested classes
- Single level inheritance is used, with enclosing classes
- Single level inheritance is used, with both enclosing and nested classes
(d).Single level inheritance is used, with both enclosing and nested classes
need an explanation for this answer? contact us directly to get an explanation for this answer