Package com.zybooks.dsaj.design
Interface Sellable
- All Known Subinterfaces:
Insurable
- All Known Implementing Classes:
BoxedItem
,BoxedItem2
,Photograph
public interface Sellable
Interface for objects that can be sold.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a description of the object.int
Returns the list price of the item in cents.int
Returns the lowest price, in cents, we will accept.
-
Method Details
-
description
String description()Returns a description of the object.- Returns:
- a description of the object
-
listPrice
int listPrice()Returns the list price of the item in cents.- Returns:
- the list price of the item in cents
-
lowestPrice
int lowestPrice()Returns the lowest price, in cents, we will accept.- Returns:
- the lowest price, in cents, we will accept
-