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

📄 book.java

📁 在网上书店买书
💻 JAVA
字号:
/*
 * Book.java
 *
 * Created on 2008年5月9日, 下午1:26
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package Model;

/**
 *
 * @author Administrator
 */
public class Book {
    
    /** Creates a new instance of Book */
    private String ISBN;
    private String image;
    private int Quanty=0;
    private double price;
    private String Tilte;
    private double totalPrice;
    public Book() {
    }

    public String getISBN() {
        return ISBN;
    }

    public void setISBN(String ISBN) {
        this.ISBN = ISBN;
    }

    public int getQuanty() {
        return Quanty;
    }

    public void addQuanty() {
        this.Quanty ++;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice() {
        this.totalPrice = this.price*this.Quanty;
    }

    public String getTilte() {
        return Tilte;
    }

    public void setTilte(String Tilte) {
        this.Tilte = Tilte;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
    
}

⌨️ 快捷键说明

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