Index
■A
Abstract Window Toolkit (AWT), 111
Access modifiers
package-private, 27private, 27protected, 27public, 27Additive operators, 57–58
Animal classes
animals speak, 106Carnivore interface, 105Cat class, 103Dog class, 104Herbivore interface, 105Mammal class, 102Mouse class, 104–105Predator interface, 105Scavenger interface, 105Animationfactors, 186frame rate, 185multiple objectsclass, color usage, 194–196Fireworks class, 192–193FireworksPanel class, 194fireworks program in action, 191Timer object, 191scoot ball gameactionPerformed method, 188actionScootball, 190paint method, 190run method, 190Runnable interface, 188ScootBall class, 186–188ScootBallPanel class, 188–189starting state, 189