book.java

来自「beginJsp2.0外文书籍源代码」· Java 代码 · 共 34 行

JAVA
34
字号
package booklibrary;

// For the abstract version of this class (p194), the class should be declared like so:
// public abstract class Book
public class Book
{

  private String title;

  public String getTitle()
  {
    return title;
  }

  public void setTitle(String newTitle)
  {
    this.title = newTitle;
  }

/*
// Uncomment the method declaration below for the abstract version of the class (p194)
  public abstract String getType();
*/

/*
// Uncomment this constructor for bookPage2.jsp (page 181)
  public Book(String title)
  {
    this.title = title;
  }
*/

}

⌨️ 快捷键说明

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