मराठी

Two objects of the same class:

Advertisements
Advertisements

प्रश्न

Two objects of the same class:

पर्याय

  • 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

उत्तर

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 2: Class as the Basis of all Computation - Exercises [पृष्ठ ६४]

APPEARS IN

रूपा पंडित Computer Applications [English] Class 10 ICSE
पाठ 2 Class as the Basis of all Computation
Exercises | Q 1. (iii) | पृष्ठ ६४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×