ElectronicsTest - /* / ElectronicsTest.java Author:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // ElectronicsTest.java Author: Lewis/Loftus // // Demonstrates the use of inherited variables and methods via // instantiating and interacting with several objects. //******************************************************************** / public class ElectronicsTest { //----------------------------------------------------------------- // Creates a group of objects and manipulates them, using class // methods as well as inherited ones. //----------------------------------------------------------------- public static void main (String[] args) { Walkman walkman = new Walkman ("Panasonic", 35.48, 1.5, 97.9, "The Eagles - Greatest Hits"); CellPhone cell = new CellPhone ("Motorola", 99.99, .5, "555-987- 1829", true); Printer printer = new Printer ("HP", 145.87, 8.0, 1080, false, false); Clock clock = new Clock ("Centurian", 20.34, 3.2, "12:35pm"); AlarmClock aClock = new AlarmClock ("Timex", 18.99, 2.3, "1:37pm", "6:35am");
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 2

ElectronicsTest - /* / ElectronicsTest.java Author:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online