Local class is defined inside any function or block - C++ basic concepts

Q.  When a class is defined inside any function or block, it is called ___________ .
- Published on 17 Jul 15

a. Nested class
b. Block class
c. Local class
d. It is not possible

ANSWER: Local class
 

    Discussion

  • ramesh   -Posted on 12 Oct 15
    When a class is defined inside any function or block, it is called local class.

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)