Class Photograph

java.lang.Object
com.zybooks.dsaj.design.Photograph
All Implemented Interfaces:
Sellable

public class Photograph extends Object implements Sellable
Class for photographs that can be sold.
  • Constructor Details

    • Photograph

      public Photograph(String desc, int p, boolean c)
  • Method Details

    • description

      public String description()
      Description copied from interface: Sellable
      Returns a description of the object.
      Specified by:
      description in interface Sellable
      Returns:
      a description of the object
    • listPrice

      public int listPrice()
      Description copied from interface: Sellable
      Returns the list price of the item in cents.
      Specified by:
      listPrice in 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 interface Sellable
      Returns:
      the lowest price, in cents, we will accept
    • isColor

      public boolean isColor()