Start of Tutorial > Start of Trail |
Search
Feedback Form |
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.
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.
This section tells you what you need to know
to manage inheritance up and down from
your classes. First, it describes generally what a subclass gets from
its ancestors and specifically what every class
gets from the Object
class. Second, it discusses how to control whether your class can be
subclassed and whether its subclasses can override its methods.
The Java programming language lets you define a class, called a nested class, within another class. Inner Classes are a special type of nested class.
Start of Tutorial > Start of Trail |
Search
Feedback Form |