Skip to main content

Wombat Object Basics

Posted by dnourie on August 8, 2008 at 9:37 AM PDT
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

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!

Getting to Know Wombats

Next, click on Scenario in the top menu, choose Open, select
wombats, then click Open. You should see something like Figure 1 below:

Figure 1. Wombat Scenario

This program will be made up of several Java objects: World, wombatWorld, Actor, Wombat, Leaf.

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 City objects, House objects, and People objects. And many more objects.

Read the rest of this article . . .

Related Topics >>