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

📄 booktitle.java

📁 这是一个小程序 网上书店用的 我们学生做的一个小实验
💻 JAVA
字号:
package bean;
/**
* A class representing a book title
*
* @author CTE
* @version 1.0
*/
public class BookTitle{
     
    private String title;
    private String author;
    private String isbn;
    private String edition;
    private String publisher;
    private String published_date;
    private double price;
    private double discount;
    private String description;
    private int qtyinstock;
    private String catalognum;
    
    
    /**
     * class BookTitle constructor
     *
     */
    public BookTitle(){} 

    /**
     * class BookTitle constructor.
     * @param inCallNumber String book's call number.
     * @param inName String book's name (title).
     * @param inAuthors String book's authors.
     * @param inIsbn String book's ISBN
     * @param inEdition String book's edition.
     * @param inPublisher String book's publisher.
     * @param inYear int book's year.
     *
     */
    public BookTitle(String inName, String inAuthors, String inIsbn,
		      String inEdition, String inPublisher, String inPublished_date, 
		      double inPrice, double inDiscount, String inDescription, int inQtyInStock, String inCatalogNum){

	
	title = inName ;
	author = inAuthors ;
	isbn = inIsbn ;
	edition =inEdition;
	publisher =inPublisher;
	published_date = inPublished_date;
	price=inPrice;
	discount=inDiscount;
	description=inDescription;
	qtyinstock=inQtyInStock;
	catalognum=inCatalogNum;
    }
    
    
    /**
     * Accessor for Name
     * @return String
     */
    public String getTitle() {
	return title;
    }

    /**
     * Mutator for Name
     * @param inName String input name
     * @return void
     */
    public void setTitle( String inName ) {
        title = new String( inName );
    }
    
    /**
     * Accessor for isbn
     * @return String
     */
    public String getISBN() {
	return isbn;
    }
    
    /**
     * Mutator for isbn
     * @param inIsbn String input isbn
     * @return void
     */
    public void setISBN( String inIsbn ) {
        isbn = new String( inIsbn );
    }
    
    /**
     * Accessor for Edition
     * @return String
     */
    public String getEdition() {
	return edition;
    }
    
    /**
     * Mutator for Edition
     * @param inEdition String input edition
     * @return void
     */
    public void setEdition( String inEdition ) {
        edition = new String( inEdition );
    }
    
    /**
     * Accessor for authors
     * @return String
     *
     */
    public String getAuthor() {
	return author;
    }
    
    /**
     * Mutator for authors
     * @param inAuthors String input authors
     * @return void
     *
     */
    public void getAuthors( String inAuthors ) {
        author = new String( inAuthors );
    }
    
    /**
     * Accessor for publisher
     * @return String
     */
    public String getPublisher() {
	return publisher;
    }
    
    /**
     * Mutator for publisher
     * @param inPublisher String input publisher
     * @return void
     */
    public void setPublisher( String inPublisher ) {
        publisher = new String( inPublisher );
    }
    
    /**
     * Accessor for published_date
     * @return String
     */
    public String getPublished_Date() {
	return published_date;
    }
    
    /**
     * Mutator for publisher
     * @param inPublisher String input publisher
     * @return void
     */
    public void setPublished_Date( String inPublished_Date ) {
        published_date = new String( inPublished_Date );
    }

	/**
	 * @return the catalognum
	 */
	public String getCatalognum() {
		return catalognum;
	}

	/**
	 * @param catalognum the catalognum to set
	 */
	public void setCatalognum(String catalognum) {
		this.catalognum = catalognum;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the discount
	 */
	public double getDiscount() {
		return discount;
	}

	/**
	 * @param discount the discount to set
	 */
	public void setDiscount(double discount) {
		this.discount = discount;
	}

	/**
	 * @return the price
	 */
	public double getPrice() {
		return price;
	}

	/**
	 * @param price the price to set
	 */
	public void setPrice(double price) {
		this.price = price;
	}

	/**
	 * @return the qtyinstock
	 */
	public int getQtyinstock() {
		return qtyinstock;
	}

	/**
	 * @param qtyinstock the qtyinstock to set
	 */
	public void setQtyinstock(int qtyinstock) {
		this.qtyinstock = qtyinstock;
	}
}

⌨️ 快捷键说明

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