WallClock - }

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

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Ask a homework question - tutors are online