O'Reilly logo

Java™ for Programmers: Deitel by Harvey M. Deitel - Deitel & Associates, Inc., Paul J. Deitel - Deitel & Associates, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8. Classes and Objects: A Deeper Look

Objectives

In this chapter you’ll learn:

• Encapsulation and data hiding.

• The notions of data abstraction and abstract data types (ADTs).

• To use keyword this.

• To use static variables and methods.

• To import static members of a class.

• To use the enum type to create sets of constants with unique identifiers.

• To declare enum constants with parameters.

• To organize classes in packages to promote reuse.

Instead of this absurd division into sexes, they ought to class people as static and dynamic.

Evelyn Waugh

Is it a world to hide virtues in?

William Shakespeare

But what, to serve our private ends, Forbids the cheating of our friends?

Charles Churchill

This above all: to thine own self be true. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required