English

Which of the members can be accessed globally? - Computer Applications

Advertisements
Advertisements

Question

Which of the members can be accessed globally?

Options

  • Private

  • Public

  • Protected

  • All of the above

MCQ

Solution

Public

Explanation:

A class's public members have global access. This means they can be accessible from anywhere in the program, even classes other than the one in which they are specified.

shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Class as the Basis of all Computation (Objects and Classes) - EXERCISES [Page 382]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 6 Class as the Basis of all Computation (Objects and Classes)
EXERCISES | Q I. 6. | Page 382
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×