Write a java statement to create an object key of the class Room.
Answers
Answered by
3
Answer:
Given Class name: Room
To create: Object 'key' of the class Room
_______
Syntax of creating an object of a class
<Class Name><Object Name> = new <Class Name>();
_______
So here is your answer...
Room key=new Room();
Similar questions