+ 2

What is nesting?

10th Nov 2016, 1:01 PM
Bomte Gapak
Bomte Gapak - avatar
5 Answers
+ 8
Besides, you can have nested classes. This means you can have a class inside of another one
10th Nov 2016, 2:06 PM
Remmae
Remmae - avatar
+ 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 ;)
10th Nov 2016, 1:08 PM
George Rabbat
George Rabbat - avatar
+ 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); } }
10th Nov 2016, 1:10 PM
K. T.
K. T. - avatar
0
Inheritance
9th Dec 2016, 5:17 AM
Hariharan.g
Hariharan.g - avatar
0
Nesting anything is to create it twice or anything g inside another one of same type.
19th Dec 2016, 11:44 AM
Amir Khan
Amir Khan - avatar