?? product.java
字號:
package iks.ethz.jpoxdemo.plain;
import javax.jdo.annotations.*;
/**
* The Product Class is a generalization of all the products in the store
* @author ionut
*/
public class Product{
protected String name =null;
protected String description =null;
protected double price = 0.0;
/**
* Sole constructor. (For invocation by subclass
* constructors, typically implicit.)
*/
protected Product() {
}
/**
* Product constructor that creates a new product with given description elements
* @param name
* @param description
* @param price
*/
public Product(String name, String description, double price){
this.name=name;
this.description=description;
this.price=price;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -