Chapter 4

Programming in the Large II
Objects and Classes

WHEREAS A SUBROUTINE represents a single task, an object can encapsulate both data (in the form of instance variables) and a number of different tasks or "behaviors" related to that data (in the form of instance methods). Therefore objects provide another, more sophisticated type of structure that can be used to help manage the complexity of large programs.

This chapter covers the creation and use of objects in Java. It also discusses the object-oriented approach to program design.

Sections in Chapter 4:

  1. Objects, Instance Variables, and Instance Methods
  2. Constructors
  3. Inheritance and Polymorphism
  4. Interfaces, this and super, and Other Details
  5. Object-oriented Programming

[ First Section | Next Chapter | Previous Chapter | Main Index ]