English

State True or False. Member data and methods declared under private access specifier are available to all other methods from any other class.

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]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 6 Encapsulation
Exercises | Q 3. (iii) | Page 149
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×