InterviewSolution
Saved Bookmarks
| 1. |
How many local classes can be defined inside a single function?(a) Only 1(b) Only 3(c) Only 5(d) As many as requiredThe question was asked in examination.Origin of the question is Local Class in section Class Members & Types of Object Oriented Programming |
|
Answer» CORRECT answer is (d) As many as required The explanation: The LOCAL classes can be defined as required. There is no restriction on the number of local classes that can be defined inside a function. But all those classes MUST follow the rules and RESTRICTIONS. |
|