⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 travelexpense.java

📁 关于汽车的购买系统,收费系统,汽车耗油系统,是早期和同学开发的JAVA程序
💻 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 + -