public class Item
{
private String name;
private int Price;
public Item()
{
name = "";
Price = 0;
}
public Item(String n, int p)
{
this.name = n;
this.Price = p;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getPrice() {
return Price;
}
public void setPrice(int price) {
Price = price;
}
}
Wednesday, October 27, 2010
LabTest#2: Revised Solution -- Section 6 -- Class: Item
I had forgotton to include this before
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment