Class Information
Class Pizza
Class Attributes:
- Visibility: public
- Final
- Extends:JunkFood
- Implements interfaces:
Static Variables:
-
numSlicesDefault of type int is package and final.
Static Methods:
-
sayHi takes
- a of type int
- b of type int
and has return type void.
Its visibility is
public.
Constructors:
-
no arguments
-
1 argument: numSlices of type int
Instance Variables:
-
toppings of type Vector is private.
-
cheeses of type Vector is private.
-
slicesRemaining of type int is private.
Instance Methods:
-
addTopping takes
and has return type void.
Its visibility is
public.
-
addCheese takes
and has return type void.
Its visibility is
public.
-
eatSlice takes no arguments
and has return type void.
Its visibility is
public.
This page generated by Stu Dent's CS211 Project