Class Eight
Class Attributes:
Static Variables:
Static Methods:
- swap is public, has return type void and takes:
- a of type Eight
- b of type Eight
Constructors:
Instance Variables:
- val of type int is public.
Instance Methods:
- bar is public, has return type int and takes:
- x of type int
- y of type int
- Overrides same method in Seven
- toSeven is protected, has return type Seven and takes no arguments.
- doNothing is public, has return type void and takes no arguments.
- compare is package, abstract, has return type void and takes:
Inherited Static Variables:
- daysAWeek of type int is public.
- Inhertied variable from Seven
- fingersPerHand of type int is public.
- Inhertied variable from Five
- toesPerFoot of type int is public.
- Inhertied variable from Five
- fiveTimesOne of type Five is package.
- Inhertied variable from Five
Inherited Static Methods:
- tomorrow is public, has return type String and takes:
- today of type String
- Inhertied method from Seven
- pickADay is public, has return type String and takes:
- d of type int
- Inhertied method from Seven
Inherited Static Variables:
- ofTheAncientWorld of type Wonders is public.
- Inhertied variable from Seven
- ofTheModernWorld of type Wonders is public.
- Inhertied variable from Seven
- threePlusTwo of type Five is protected.
- Inhertied variable from Five
- oneTimesFive of type Five is package.
- Inhertied variable from Five
Inherited Static Methods:
- foo is public, has return type void and takes no arguments.
- Inhertied method from Seven
- bar is public, has return type int and takes:
- x of type int
- y of type int
- Inhertied method from Seven
- thHeaven is public, has return type Seven and takes no arguments.
- Inhertied method from Seven