English

The members under default can be accessed by the objects of the class.

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]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 6 Encapsulation
Exercises | Q 1. (ix) | Page 148
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×