public class CupcakeShop
extends java.lang.Object
Constructor and Description |
---|
CupcakeShop()
A STENCIL constructor that you should fill in by initializing your
instance variables and opening the shop.
|
Modifier and Type | Method and Description |
---|---|
void |
displayPrice(CS15Cupcake cupcake)
A SUPPORT method that updates the price label to match the cupcake on
display.
|
void |
displayShopUpdate(java.lang.String update)
A SUPPORT method that updates the message shown in the central message
box.
|
void |
openShop()
A SUPPORT method that you should call in the constructor to
open the cupcake shop.
|
void |
order1()
A STENCIL method called when a user clicks the "Order 1" button.
|
void |
order2()
A STENCIL method called when a user clicks the "Order 2" button.
|
void |
order3()
A STENCIL method called when a user clicks the "Order 3" button.
|
void |
order4()
A STENCIL method called when a user clicks the "Order 4" button.
|
void |
order5()
A STENCIL method called when a user clicks the "Order 5" button.
|
public CupcakeShop()
public void displayPrice(CS15Cupcake cupcake)
cupcake
- the cupcake on displaypublic void displayShopUpdate(java.lang.String update)
update
- the message to displaypublic void openShop()
public void order1()
public void order2()
public void order3()
public void order4()
public void order5()