Inheritance of Methods
int id; // Id number of room
{ return ”Room: ” + id; }
class Bathroom extends Room
boolean shower; // true if room has shower.
Bathroom r2 = new Bathroom();
/* Room’s toString method is available for both Rooms and Bathrooms. */