New to Java? We'll help you get started with our revised beginner's tutorial, or our free online textbook.
|
Get the latest Java books |
|
h t t p : / /w w w . j a v a c o f f e e b r e a k . c
o m /
|
Chapter 5
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.
Contents of Chapter 5:
- Section 1: Objects, Instance Methods, and Instance Variables
- Section 2: Constructors and Object Initialization
- Section 3: Programming with Objects
- Section 4: Inheritance, Polymorphism, and Abstract Classes
- Section 5: More Details of Classes
- Programming Exercises
- Quiz on this Chapter
[ First Section | Next Chapter | Previous Chapter | Main Index ]