Advertisements
Advertisements
Question
The members under default can be accessed by the objects of the class.
Options
True
False
MCQ
Advertisements
Solution
True
Explanation:
Members with default access (no access modifier) can be accessed by objects of the same class and by other classes within the same package. They cannot be accessed from classes outside the package.
shaalaa.com
Is there an error in this question or solution?
Chapter 6: Encapsulation - Exercises [Page 148]
