Start of Tutorial > Start of Trail | Search |
In the lesson entitled Object-Oriented Programming Concepts you read about the concepts behind object-oriented programming. Now it's time to get to work and put those concepts to practical use in Java.
Here, you will learn how to create aRectangle
object from theRectangle
class and use it. This section also discusses briefly how the system cleans up the object when it's no longer needed.
This section provides a complete description of a larger class,
Stack
, and describes all of the components
of a class that provide for the life cycle of an object created from it.
It talks first about constructors,
then about member variables and methods.
Spot
AppletThis is the last section of this lesson, and it contains the code for a fun little applet. Through that applet, you will learn how to subclass another class, how to implement an interface, and how to use an inner class to implement an adapter.
Start of Tutorial > Start of Trail | Search |