हिंदी

Consider the following statements: Computer desktop = new Computer(); Computer Mainframe = new Computer(); Name the objects of the class given above: - Computer Applications

Advertisements
Advertisements

प्रश्न

Consider the following statements:

Computer desktop = new Computer();

Computer Mainframe = new Computer();

Name the objects of the class given above:

विकल्प

  • Desktop, Mainframe

  • desktop, Mainframe

  • Computer, Mainframe

  • Computer, desktop

MCQ
Advertisements

उत्तर

desktop, Mainframe

Explanation:

The expression new Computer() creates two objects; the reference (variable) names for those objects are desktop and Mainframe. “Computer” is the class name, not the object name.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2025-2026 (March) Official Board Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×