Easy question hopefully.....
I have an easy question but am having a mental block. How can I assign the value of 0.05 to restock? What I need to do is return a 5% restocking value added onto the item. Make sense?
//Type.java
public class Type extends Office // Start of public subclass Itemtype that stores office items color.
{
private String color; //get string name
private float restock;//get float value of restock
private float item;//get float value of total items
public Type(String color,float restock, float item)
{ // constructor to initialize the fields
this.color = color;
this.restock = restock;
this.item = item;
}
public float getRestock()
{
return (this.item * this.restock) + (this.item);
}
} //end public subclass Type

