C D E G N T

C

Checkout - class Checkout.
Maintains a list of DessertItem references There is no limit to the number of DessertItem's in the list
Checkout() - Constructor for class Checkout
Creates a Checkout instance with an empty list of DessertItem's
clear() - Method in class Checkout
Clears the Checkout to begin checking out a new set of items

D

DessertItem - class DessertItem.
Abstract superclass for Dessert Item hierarchy
DessertItem() - Constructor for class DessertItem
Null constructor for DessertItem class
DessertItem(String) - Constructor for class DessertItem
Initializes DessertItem data

E

enterItem(DessertItem) - Method in class Checkout
A DessertItem is added to the end of the list of items

G

getCost() - Method in class DessertItem
Returns cost of DessertItem
getName() - Method in class DessertItem
Returns name of DessertItem

N

name - Variable in class DessertItem
 
numberOfItems() - Method in class Checkout
Returns the number of DessertItem's in the list

T

toString() - Method in class Checkout
Returns a String representing a receipt for the current list of items
totalCost() - Method in class Checkout
Returns total cost of items in cents (without tax)
totalTax() - Method in class Checkout
Returns total tax on items in cents

C D E G N T