1(viii)
Consider the following statements:
Computer desktop = new Computer(); Computer Mainframe = new Computer();
Name the objects of the class given above:
- (a)Desktop, Mainframe
- (b)desktop, Mainframe
- (c)Computer, Mainframe
- (d)Computer, desktop
Show SolutionHide Solution↓
desktop, Mainframe
Reason — In the given statements, Computer is the class name, while desktop and Mainframe are the object names (variables that store object references). Therefore, the objects of the class are desktop and Mainframe.