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

📄 book.java

📁 一个简单的图书管理系统中的管理员所能用的功能
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -