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?