Rectangle great Room = new Rectangle () what is the name of the class and what is the reference variable name?
Rectangle great Room = new Rectangle ()
1. what is the name of the class ?
2. what is the reference variable name?
a. String b. Rectangle c. Scanner d. greatRoom
a. Rectangle b. greatRoom c. new d.new Rectangle
- 8 months agoFavorite Answer
- husoskiLv 78 months ago
That's a syntax error as typed or pasted--assuming that's either Java or C#. The space in "great Room" is not allowed, and you need a ; semicolon to end a declaration. If you changed that to:
Rectangle greatRoom = new Rectangle();
Then the class is Rectangle and the variable name is greatRoom.