Wombat Object Basics

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!

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 . . .

Comments:

It very good Information page

Posted by Neeraj on August 10, 2008 at 07:18 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

Java Technology Fundamentals are now covered as part of the Core Java Technology Tech Tips. Please go there for more tech tips.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today