1.

Which of the followings are false statements about Local class?1. A local class type name can only be used in the enclosing function2. All the methods of Local classes must be defined inside the class only3. A Local class can contain static data members. 4. A Local class may contain static functions.5. Non-static variables of the enclosing function are not accessible inside local classes. 6. Local classes cannot access global types, variables and functions.

A. Only 1,3
B. Only 3, 6
C. Only 2 , 4 , 6
D. None of these
Answer» C. Only 2 , 4 , 6


Discussion

No Comment Found