Advertisements
Advertisements
Question
State True or False.
Member data and methods declared under private access specifier are available to all other methods from any other class.
True or False
Advertisements
Solution
This statement is false.
Explanation:
Member data and methods declared under the private access specifier are available only within the same class. They cannot be accessed directly by methods of other classes.
shaalaa.com
Is there an error in this question or solution?
Chapter 6: Encapsulation - Exercises [Page 149]
