MCQ
Which statement is used to declare an object of class 'Room'?
  • A
    object Room r1;
  • Room r1;
  • C
    new Room r1;
  • D
    Room r1( );

Answer

Correct option: B.
Room r1;
B

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free