Package bookstoreAcceptable
Class Item
- java.lang.Object
-
- bookstoreAcceptable.Item
-
-
Method Summary
Modifier and Type Method Description abstract java.lang.String
getDetails()
abstract double
getFinalPrice()
int
getId()
double
getOriginalPrice()
java.lang.String
getTitle()
abstract java.lang.String
showDetails()
Shows the information for an item
-
-
-
Method Detail
-
showDetails
public abstract java.lang.String showDetails()
Shows the information for an item
-
getDetails
public abstract java.lang.String getDetails()
- Returns:
- the information for an item
-
getFinalPrice
public abstract double getFinalPrice()
- Returns:
- the price after discount of a selected item
-
getTitle
public java.lang.String getTitle()
- Returns:
- the title of an item
-
getId
public int getId()
- Returns:
- the id of an item
-
getOriginalPrice
public double getOriginalPrice()
- Returns:
- the original price of a selected item
-
-