23 lines
437 B
Java
23 lines
437 B
Java
package rofaapp;
|
|
|
|
import javax.swing.ImageIcon;
|
|
|
|
public class ItemArmChair extends ItemChair {
|
|
|
|
//Only thing that is different is the units
|
|
private final int units = 1625 + 250;
|
|
|
|
ItemArmChair(int i, TypeWood tw, ImageIcon im)
|
|
{
|
|
setName("Arm Chair");
|
|
setId(i);
|
|
setWood(tw);
|
|
setIcon(im);
|
|
}
|
|
|
|
public double getPrice()
|
|
{
|
|
return units * getWood().getPrice();
|
|
}
|
|
}
|