23 lines
386 B
Java
23 lines
386 B
Java
package apo;
|
|
|
|
public class AbstractProduct {
|
|
private String name;
|
|
private double price;
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public double getPrice() {
|
|
return price;
|
|
}
|
|
|
|
public void setPrice(double price) {
|
|
this.price = price;
|
|
}
|
|
}
|