Package library

Class Book

  • Direct Known Subclasses:
    CirculatingBook, ReferenceBook

    public class Book
    extends java.lang.Object
    Basic Book class for all types of books information includes author, title, and ISBN
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String author  
      protected java.lang.String isbn  
      protected java.lang.String title  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAuthor()
      standard getters and setters
      java.lang.String getIsbn()  
      java.lang.String getTitle()  
      void setAuthor​(java.lang.String author)  
      void setIsbn​(java.lang.String isbn)  
      void setTitle​(java.lang.String title)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • author

        protected java.lang.String author
      • title

        protected java.lang.String title
      • isbn

        protected java.lang.String isbn
    • Method Detail

      • getAuthor

        public java.lang.String getAuthor()
        standard getters and setters
      • setAuthor

        public void setAuthor​(java.lang.String author)
      • getTitle

        public java.lang.String getTitle()
      • setTitle

        public void setTitle​(java.lang.String title)
      • getIsbn

        public java.lang.String getIsbn()
      • setIsbn

        public void setIsbn​(java.lang.String isbn)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        pretty String of title, book and ISBN information, suitable for printing