हिंदी

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

प्रश्न

State True or False.

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

सत्य या असत्य
Advertisements

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Encapsulation - Exercises [पृष्ठ १४९]

APPEARS IN

रुपा पंडित Computer Applications [English] Class 10 ICSE
अध्याय 6 Encapsulation
Exercises | Q 3. (iii) | पृष्ठ १४९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×