<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* A Bathroom is a Room and may have a shower */
class Bathroom extends Room {

  private boolean hasShower; //=has a shower
  
  /** A Bathroom has initial mess level, boolean hasShower */
  public Bathroom(int mess, boolean hasShower) {
    super(mess);
    this.hasShower= hasShower;
  }
  
  /** = String description of this Bathroom */
  public String toString() {
    String line= super.toString();
    line += ", a bathroom";
    if (hasShower)
      line += " with a shower";
    return line;
  }

  /** Clean repeatedly.  Call method clean four times */
  public void majorCleanUp() {
      clean();  clean();  clean();  clean();
  }

}
</pre></body></html>