?? order.java
字號:
package mypack;
public class Order {
private Long id;
private String orderNumber;
private double price;
private Customer customer;
/** 完整的構造方法 */
public Order(String orderNumber, double price,mypack.Customer customer) {
this.orderNumber = orderNumber;
this.price=price;
this.customer = customer;
}
/** 默認構造方法 */
public Order() {}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getOrderNumber() {
return this.orderNumber;
}
public void setOrderNumber(String orderNumber) {
this.orderNumber = orderNumber;
}
public double getPrice() {
return this.price;
}
public void setPrice(double price) {
this.price = price;
}
public Customer getCustomer() {
return this.customer;
}
public void setCustomer(Customer customer) {
this.customer = customer;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -