मराठी

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×