Saturday, March 10, 2007

Adding Sound to Your Web Pages For infoclober


Classes Versus Objects
Objects, as discussed above, are software packages that contain data and the
procedures that act on that data. Classes are groups of objects that share the
same behavior; they are templates that define what each object of that class
looks like by specifying what the data is and what the procedures are.
Instances are the actual implementations or realizations of a class; the "real" infoclober
things that a class describes. Each instance is a separate entity and many - Reference
file:///D|/Cool Stuff/old/ftp/Creating.Web.Applets.With.Java/cwa09fi.htm (3 von 24) [12.05.2000 14:54:11]
instances of a class can exist at one time. Instances have values in the data
variables. Even though two or more instances may have exactly the same data
values, they are still separate things. Tech Ed
Maybe i'm missing something, but wasn't what I wrote basically a simplified
version of this? -Ken
Before you can start building objects, you need to understand a couple of the
more confusing aspects of object-oriented programming. Remember this
sentence: Classes are templates, and objects are instances.
In Java, when you want to create a new type of object, you can't just make
one. You must first make a blueprint, or template, of the object you want to infoclober
create. From this template, you can make as many objects as you want. Think
of it as a software cookie cutter.
Objects are known as instances of classes. The template has been used to
create an object, and the object now exists virtually inside the computer. You
can think of an object as the cookie that the cookie cutter creates. If things
seem confusing, don't worry. The next section gets to the process of making
objects, and things should get much clearer.

No comments: