मराठी

The access specifier that gives visibility to the package and to all the subclasses and the objects is ______.

Advertisements
Advertisements

प्रश्न

The access specifier that gives visibility to the package and to all the subclasses and the objects is ______.

पर्याय

  • default

  • private

  • public

  • protected

MCQ
रिकाम्या जागा भरा
Advertisements

उत्तर

The access specifier that gives visibility to the package and to all the subclasses and the objects is protected.

Explanation:

The protected access modifier allows a class member (variable or method) to be accessed by any other class within the same package, as well as by any subclasses (inherited classes) even if they reside in completely different packages.

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

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×