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.booleanisColor()intReturns the list price of the item in cents.intReturns the lowest price, in cents, we will accept.
-
Constructor Details
-
Photograph
-
-
Method Details
-
description
Description copied from interface:SellableReturns a description of the object.- Specified by:
descriptionin interfaceSellable- Returns:
- a description of the object
-
listPrice
public int listPrice()Description copied from interface:SellableReturns the list price of the item in cents. -
lowestPrice
public int lowestPrice()Description copied from interface:SellableReturns the lowest price, in cents, we will accept.- Specified by:
lowestPricein interfaceSellable- Returns:
- the lowest price, in cents, we will accept
-
isColor
public boolean isColor()
-