book.java

来自「本系统图书馆管理系统」· Java 代码 · 共 63 行

JAVA
63
字号
package baseclass;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
/////////////////////////////////////////
//book of dividual that has unique index
/////////////////////////////////////////

public class Book {

        int bookIndex;
        String ISBN;
        String   bookState;

        //////////////////////////////////////
        //set the value of Book
        //////////////////////////////////////

        public void setBookIndex(int index)
        {
                bookIndex=index;
        }

        public void setISBN(String isbn)
        {
                ISBN=isbn;
        }

        public void setBookState(String state)
        {
                bookState=state;
        }

        //////////////////////////////////////
        //get the value of Book
        //////////////////////////////////////

        public int getBookIndex( )
        {
                return bookIndex;
        }

        public String getISBN( )
        {
                return ISBN;
        }

        public String getBookState( )
        {
                return bookState;
        }
}

⌨️ 快捷键说明

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