+ 2
What is nesting?
5 Answers
+ 8
Besides, you can have nested classes. This means you can have a class inside of another one
+ 4
its like things inside things
for exmple:
nested class:
class foo
{
class boo \\nested class
{}
}
nested if:
if(true)
{
if(false) \\ nested if
{}
}
nested for:
for(;;)
{
for(;;) \\ nested for
{}
}
and so on.
hope you got it ;)
+ 2
For example, a loop can be nested inside of another loop. C++ allows at least 256 levels of nesting.
for ( init; condition; increment ) {
//this is a nested loop
for ( init; condition; increment ) {
statement(s);
}
}
0
Inheritance
0
Nesting anything is to create it twice or anything g inside another one of same type.



