public abstract class Furniture
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private javax.swing.ImageIcon |
icon |
private int |
id |
private java.lang.String |
name |
private TypeWood |
wood |
Constructor and Description |
---|
Furniture() |
Modifier and Type | Method and Description |
---|---|
javax.swing.ImageIcon |
getIcon() |
int |
getId() |
java.lang.String |
getName() |
abstract double |
getPrice() |
abstract int |
getUnits() |
TypeWood |
getWood() |
boolean |
setIcon(javax.swing.ImageIcon i) |
boolean |
setId(int i) |
boolean |
setName(java.lang.String s) |
boolean |
setWood(TypeWood w) |
private int id
private TypeWood wood
private javax.swing.ImageIcon icon
private java.lang.String name
public int getId()
public TypeWood getWood()
public javax.swing.ImageIcon getIcon()
public java.lang.String getName()
public boolean setId(int i)
public boolean setWood(TypeWood w)
public boolean setIcon(javax.swing.ImageIcon i)
public boolean setName(java.lang.String s)
public abstract int getUnits()
public abstract double getPrice()