3. Writing Basic Classes 1
Practice writing straightforward classes: instance variables, constructor, getter, setter methods.
Install BlueJ. If you are on a school computer (no Administrator access), you should download the “Standalone zip” from the BlueJ Downloads Page. Otherwise the “MSI Installer” is the way to go.
Get the AP CS GridWorld. The easiest download is the Gridworld for BlueJ. There are some configurations you can change, see that page for details.
You must find the Preferences -> Libraries area and add the
gridworld.jar
file to the list of libraries or nothing will work!
The gridworld file is just inside the GridWorld folder.
Preferences on Mac OS are Command-,
in the BlueJ menu, while on
Windows they are under the Tools menu.
The README in your GitHub repository should have information on how to get set up and started.
Practice writing straightforward classes: instance variables, constructor, getter, setter methods.
HobbleBug and friends, a good first or second day for writing classes.
The last sequence of practice classes.
Quiz on basic class definition, GridWorld construction.