Private members of class are accessible only to members of same class - C++ basic concepts

Q.  Private members of the class are accessible only to the members of the same class.
- Published on 17 Jul 15

a. True
b. False

ANSWER: False
 

    Discussion

  • Brijesh   -Posted on 12 Oct 15
    Private members of the class are accessible only to the members of the same class is false statement. It is also accessible through friend function.

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.)