PCBased - minGhz = ghz; } public int getRam(){return...

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

View Full Document Right Arrow Icon
package homeWork6; p public class PCBased extends Game { int minRamSize, minHdSize; double minGhz; d public PCBased(String newDescription) { super(); minRamSize = 0; minHdSize = 0; minGhz = 0.0; } public PCBased(String newDescription, int ram, int hd, double ghz) { super(); minRamSize = ram; minHdSize = hd;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: minGhz = ghz; } public int getRam(){return minRamSize;} public int getSize(){return minHdSize;} public double getGhz(){return minGhz;} p public String toString() { return super.toString() +" RAM Needed: "+minRamSize+" Disk Space needed "+minHdSize+" Speed Needed "+minGhz; } }...
View Full Document

This note was uploaded on 09/10/2009 for the course CS 102 taught by Professor Kanipiakins during the Spring '09 term at University of Maryland Baltimore.

Ask a homework question - tutors are online