Package bookstoreAcceptable
Class CD
- java.lang.Object
-
- bookstoreAcceptable.Item
-
- bookstoreAcceptable.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 bookstoreAcceptable.Item
getId, getOriginalPrice, getTitle
-
-
-
-
Method Detail
-
getFinalPrice
public double getFinalPrice()
- Specified by:
getFinalPrice
in classItem
- 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 classItem
-
getDetails
public java.lang.String getDetails()
- Specified by:
getDetails
in classItem
- Returns:
- the information for an item
-
-