Hi all,
What is the difference between
Class A
{
int a,b,c,d;
Class B;
};
and
Class A
{
Class B
{
int p,q,r,s;
};
};
Which of them is called as Nested class?
Thanks
Pavan.
"Like other members, a member class (often called a nested class) can be declared in the class itself
and defined later:"
this is an excerpt from Stroustrop:(. So, had to ask this. Im not sure now too.
If that's true then they're both nested classes, yea. I wasn't aware of this, but it makes sense.