Classes and Objects
Trail: Learning the Java Language
Lesson: Classes and Objects
[an error occurred while processing this directive]

Objects

This section covers creating and using objects. You will learn how to instantiate an object, and, once instantiated, how to use the dot operator to access the object's instance variables and methods.

More on Classes

This section covers more aspects of classes that depend on using object references and the dot operator that you learned about in the preceding section: returning values from methods, the this keyword, class vs. instance members, and access control.

Nested Classes

Static nested classes, inner classes, anonymous inner classes, and local classes are covered.

Enum Types

This section covers enumerations, specialized classes that allow you to define and use sets of constants.

Annotations

Annotations allow you to add information to your program that is not actually part of the program. This section describes three built-in annotations that you should know about.
Previous page: Previous Lesson
Next page: Classes