public class Computer extends Product
Constructor and Description |
---|
Computer() |
Modifier and Type | Method and Description |
---|---|
String |
getHarddrive()
Get the harddrive.
|
String |
getProcessor()
Get the processor.
|
String |
getRam()
Get the ram.
|
void |
setHarddrive(String harddrive)
Set the harddrive.
|
void |
setProcessor(String processor)
Set the processor.
|
void |
setRam(String ram)
Set the ram.
|
String |
toString()
Get the string representation.
|
getDescription, getName, getPrice, setDescription, setName, setPrice
public String getProcessor()
public void setProcessor(String processor)
processor
- The processor to set.public String getRam()
public void setRam(String ram)
ram
- The ram to set.public String getHarddrive()
public void setHarddrive(String harddrive)
harddrive
- The harddrive to set.Copyright © 2012. All Rights Reserved.