Class Book


  • public class Book
    extends Item

    Book

    Class responsible from handling all the Book items.
    Since:
    2017-07-17
    Version:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      Book​(java.lang.String aTitle, java.lang.String anAuthor, int aDate, double aPrice, int aPackage, int id)  
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getDetails()  
      double getFinalPrice()  
      java.lang.String showDetails()
      Shows the information for an item
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Book

        public Book​(java.lang.String aTitle,
                    java.lang.String anAuthor,
                    int aDate,
                    double aPrice,
                    int aPackage,
                    int id)
    • Method Detail

      • showDetails

        public java.lang.String showDetails()
        Description copied from class: Item
        Shows the information for an item
        Specified by:
        showDetails in class Item
      • getDetails

        public java.lang.String getDetails()
        Specified by:
        getDetails in class Item
        Returns:
        the information for an item
      • getFinalPrice

        public double getFinalPrice()
        Specified by:
        getFinalPrice in class Item
        Returns:
        the price after discount of a selected item