Problem Setting, revisited
We wish to represent rooms:
Class Room is a collection of rooms
Each room has a unique ID#
Method findRoom(int targetId) returns the room with ID# equal to targetId, or null if there is no such room.
Previous slide
Next slide
Back to first slide
View graphic version