English

Two objects of the same class:

Advertisements
Advertisements

Question

Two objects of the same class:

Options

  • must have same set of member data

  • must have different set of member data

  • may have same set of member data

  • may have different set of member data

MCQ
Advertisements

Solution

must have same set of member data

Explanation:

A class serves as a blueprint, meaning every object created from it must have the exact same structural variables. While individual objects can hold completely different values inside those variables, the set of variables itself is identical and predefined by the class.

shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Class as the Basis of all Computation - Exercises [Page 64]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 2 Class as the Basis of all Computation
Exercises | Q 1. (iii) | Page 64
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×