Package com.zybooks.dsaj.design
Class Photograph
java.lang.Object
com.zybooks.dsaj.design.Photograph
- All Implemented Interfaces:
Sellable
Class for photographs that can be sold.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a description of the object.boolean
isColor()
int
Returns the list price of the item in cents.int
Returns the lowest price, in cents, we will accept.
-
Constructor Details
-
Photograph
-
-
Method Details
-
description
Description copied from interface:Sellable
Returns a description of the object.- Specified by:
description
in interfaceSellable
- Returns:
- a description of the object
-
listPrice
public int listPrice()Description copied from interface:Sellable
Returns the list price of the item in cents. -
lowestPrice
public int lowestPrice()Description copied from interface:Sellable
Returns the lowest price, in cents, we will accept.- Specified by:
lowestPrice
in interfaceSellable
- Returns:
- the lowest price, in cents, we will accept
-
isColor
public boolean isColor()
-