Class DessertItem

java.lang.Object
  |
  +--DessertItem

public abstract class DessertItem
extends java.lang.Object

Abstract superclass for Dessert Item hierarchy


Field Summary
protected  java.lang.String name
           
 
Constructor Summary
DessertItem()
          Null constructor for DessertItem class
DessertItem(java.lang.String name)
          Initializes DessertItem data
 
Method Summary
abstract  int getCost()
          Returns cost of DessertItem
 java.lang.String getName()
          Returns name of DessertItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
Constructor Detail

DessertItem

public DessertItem()
Null constructor for DessertItem class


DessertItem

public DessertItem(java.lang.String name)
Initializes DessertItem data

Method Detail

getName

public final java.lang.String getName()
Returns name of DessertItem

Returns:
name of DessertItem

getCost

public abstract int getCost()
Returns cost of DessertItem

Returns:
cost of DessertItem