R

Ram Sharma • 193.86K Points
Coach

Q. Which of the followings are false statements about Local class?

1. A local class type name can only be used in the enclosing function
2. All the methods of Local classes must be defined inside the class only
3. 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 3, 6
  • (B) Only 1,3
  • (C) Only 2 , 4 , 6
  • (D) None of these
  • Correct Answer - Option(A)
  • Views: 180
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics