book.java

来自「一个简单的图书管理系统中的管理员所能用的功能」· Java 代码 · 共 61 行

JAVA
61
字号
package myBean;

import java.io.*;

public class Book implements Serializable {

  /* 私有字段 */

  private String bookId;
  private String typeName;
  private String name;  
  private String writer;
  private String publisher;
  private float day;
  private float price;
  private float onsale;
  private float newprice;
  private String description;

  /* JavaBean属性访问方法 */

  public String getBookId() { return bookId; }
  public void setBookId(String bookId) { this.bookId = bookId.trim(); }

  public String getTypeName() { return typeName; }
  public void setTypeName(String typeName) { this.typeName = typeName; }

  public String getName() { return name; }
  public void setName(String name) { this.name = name; }

  public String getWriter(){return this.writer;}
  public void setWriter(String writer){this.writer=writer;}

  public String getPublisher(){return this.publisher;}
  public void setPublisher(String publisher){this.publisher=publisher;}
  
  public float getDay(){return this.day;}
  public  void setDay(float day){this.day=day;}
  
  public float getPrice(){return this.price;}
  public  void setPrice(float price){this.price=price;}
 
  public float getOnsale(){return this.onsale;}
   public  void setOnsale(float onsale){this.onsale=onsale;}
  
  public float getNewPrice(){return this.newprice;}
  public  void setNewPrice(float newprice){this.newprice=newprice;}
  
  public String getDescription() { return description; }
  public void setDescription(String description) { this.description = description; }
  
  
  
  /**共公方法*/

  public String toString() {
    return getName();
  }


}

⌨️ 快捷键说明

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