InterviewSolution
Saved Bookmarks
| 1. |
The enclosing function has no special access to the members of the local class.(a) True(b) FalseI got this question during an online exam.Origin of the question is Local Class topic in division Class Members & Types of Object Oriented Programming |
|
Answer» CORRECT option is (a) True The best I can explain: This is a rule that the ENCLOSING FUNCTION doesn’t have any SPECIAL access to the members of the local class. This is done to maintain the security of class members. And to adhere to the rules of OOP. |
|