📄 travelexpense.java
字号:
/*
* TravelExpense.java
*
* Created on 2007年4月18日, 下午9:37
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package homework;
/**
*
* @author Administrator
*/
public abstract class TravelExpense extends Expense {
public String destination="";
/** Creates a new instance of TravelExpense */
public TravelExpense() {
this("newyork","3000","shopping");
}
public TravelExpense(String date,String description,String destination){
super(date,description);
setDestination(destination);
}
public String getDestination() {
return destination;
}
public void setDestination(String destination) {
this.destination = destination;
}
public String toString(){
return super.toString()+"\n"+"Destination: "+this.getDestination();
}
int getRDPoints(){
return 0;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -