code040.java
package pack01;
public class code040
{
private String name = "木吉他"; //商品名称
private double price = 1880.5; //商品价格
private int count = 100; //数量
private String factory = "台湾省台北市吉隆大道纽科利琴行"; //厂址
public String getName()
{
return this.name;
}
public double getPrice()
{
return this.price;
}
public int getCount()
{
return this.count;
}
public String getFactory()
{
return this.factory;
}
}