Wombat Object Basics
By dananourie on Aug 08, 2008
|By Dana Nourie, August 2008||
Java programming is easy to learn. All Java programs are made up of objects just like the world around you. And Java objects do things with each other like you do things with objects wherever you are.
This article explains what Java objects are and how they interact with each other. You will get familiar with some basic programming terminology as well. This article is aimed at anyone interested in Java programming who is between the ages of 10-100, and has no programming experience.
The best way to learn object basics is to look at a Java program. So, to follow along with this article, you will need the following:
- The Java SE software must be installed on your computer
- Greenfoot must be installed on your computer
Open Greenfoot and let's get started!
Next, click on Scenario in the top menu, choose Open, select wombats, then click Open. You should see something like Figure 1 below:
This program will be made up of several Java objects:
Compare the Wombat World to the real world: We live on the object planet Earth. On the
Earth object are
Continent objects and
Ocean objects. On the
Continent objects, there are
House objects, and
People objects. And many more objects.