A classroom is a room and a building has many rooms. It the three classes Room,
ID: 3707339 • Letter: A
Question
A classroom is a room and a building has many rooms. It the three classes Room, Classroom, and Building create objects that have the same relationship which of the following is the most appropriate set of declarations? public class Room extends Classroom implements Building [...) public class Room extends Building ( private Classroom room:....) public class Classroom extends Room .. public class Building I private Rooml rooms:....) public class Room extends Classroom, Building (.. public class Classroom extends Building. Room ...).Explanation / Answer
Answer : 3
pulic class Classroom extends Room {....}
pulic class Building
{
private Room[] rooms;.....
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.