From ggc
|
01 packagepackage is used to name the directory or folder a class is in Nick;
02
03 importimport means to make the classes and/or packages available in this program wiki.Wiki;
04 importimport means to make the classes and/or packages available in this program arcade.*;
05 importimport means to make the classes and/or packages available in this program fang.*;
06 importimport means to make the classes and/or packages available in this program java.awt.*;
07 importimport means to make the classes and/or packages available in this program java.awt.geom.*;
08
09 publicpublic is used to indicate unrestricted access (any other class can have access) classclass is a group of fields and methods used for making objects NickArcade extendsextends means to customize or extend the functionality of a class ArcadeGame
10 {open braces start code blocks and must be matched with a close brace
11 publicpublic is used to indicate unrestricted access (any other class can have access) NickArcade()
12 {open braces start code blocks and must be matched with a close brace
13 setName("Nick's Arcade");
14 addArcadeLevel(newnew is used to create objects by calling the constructor Nick.WackadotLevel());
15 addArcadeLevel(newnew is used to create objects by calling the constructor NickandChris.MakeADealLevel());
16 addArcadeLevel(newnew is used to create objects by calling the constructor NickandChris.InteractiveArtLevel());
17 addArcadeLevel(newnew is used to create objects by calling the constructor NickandChris.BreakoutLevel());
18 addArcadeLevel(newnew is used to create objects by calling the constructor NickandChris.BreakoutFinalLevel());
19 }close braces end code blocks and must match an earlier open brace
20 }close braces end code blocks and must match an earlier open brace
21
22
|
Download/View Nick/NickArcade.java