Class CD


  • public class CD
    extends Item

    CD

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

      Constructors 
      Constructor Description
      CD​(java.lang.String aTitle, double aPrice, java.lang.String anArtist, double aDiscount, 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

      • CD

        public CD​(java.lang.String aTitle,
                  double aPrice,
                  java.lang.String anArtist,
                  double aDiscount,
                  int id)
    • Method Detail

      • getFinalPrice

        public double getFinalPrice()
        Specified by:
        getFinalPrice in class Item
        Returns:
        the price after discount of a selected item
      • 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