मराठी

State True or False. Member data and methods declared under protected access specifier are availlable to members of its own class and to its subclasses and not to any other class.

Advertisements
Advertisements

प्रश्न

State True or False.

Member data and methods declared under protected access specifier are availlable to members of its own class and to its subclasses and not to any other class.

चूक किंवा बरोबर
Advertisements

उत्तर

This statement is true.

Explanation:

Members declared with the protected access specifier are accessible within their own class and by subclasses (child classes). They are not accessible by unrelated classes outside the inheritance relationship.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 6: Encapsulation - Exercises [पृष्ठ १४८]

APPEARS IN

रूपा पंडित Computer Applications [English] Class 10 ICSE
पाठ 6 Encapsulation
Exercises | Q 3. (ii) | पृष्ठ १४८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×