हिंदी

Which keyword makes class members accessible outside the class in which they are declared? - Computer Applications

Advertisements
Advertisements

प्रश्न

Which keyword makes class members accessible outside the class in which they are declared?

विकल्प

  • Private

  • Protected

  • Public

  • Hidden

MCQ

उत्तर

Public

Explanation:

When a class member (such as a variable or method) is declared public, it becomes available from outside the class in which it is defined. This is used to grant other portions of the application access to specific class features or data.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Class as the Basis of all Computation (Objects and Classes) - EXERCISES [पृष्ठ ३८२]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 6 Class as the Basis of all Computation (Objects and Classes)
EXERCISES | Q I. 1. | पृष्ठ ३८२
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×