{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

WallClock - Returns information about the room of the house...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // WallClock.java Author: Lewis/Loftus // // Represents a generic wall clock. //******************************************************************** / public class WallClock extends Clock { //---------------------------------------------------------------- // Sets up an alarm clock with the specified information. //---------------------------------------------------------------- public WallClock (String eManufacturer, double ePrice, double eWeight, String time) { super (eManufacturer, ePrice, eWeight, time);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } //----------------------------------------------------------------// Returns information about the room of the house the wall // clock is in. //----------------------------------------------------------------public String room() { return "Kitchen"; } //----------------------------------------------------------------// Returns information about this wall clock as a string. //----------------------------------------------------------------public String toString() { String result = super.toString(); S return result; } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online