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

📄 expense.java

📁 javaExpense类
💻 JAVA
字号:
/*
 * Expense.java
 *
 * Created on 2007年10月17日, 上午10:07
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

//package mypkg;

/**
 *
 * @author duerbin
 */
public abstract class Expense 
{
    boolean ispaid;
    protected String date;
    protected String description;
    public String getDate()
    {
        
        return this.date;
    }
    public void setDate(String date)
    {
          this.date=date;
    }
    public String getDescription()
    {
        return this.description;
    }
    public void setDescription(String date)
    {
        this.date=date;
    }
    public Expense()
    {
       this("2007/01/16","beizhu");
    }
    public Expense(String date,String description)
    {
        this.date=date;
        this.description=description;
    }
    public boolean ispaid()
    {
        return ispaid;
    }
    public void ispaid(boolean ispaid)
    {
        this.ispaid=false;
    }
    public String toString()
    {
        return"date:"+date+"description:"+description;
    }
    abstract double getTotal();
    abstract double getTax();
    
       
}   

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -