WebReference.com - Excerpts from chapter 5 of Beginning Java 2 SDK 1.4 Edition, from Wrox Press Ltd | WebReference

WebReference.com - Excerpts from chapter 5 of Beginning Java 2 SDK 1.4 Edition, from Wrox Press Ltd

Beginning Java 2 SDK 1.4 Edition

Beginning Java 2 SDK 1.4 Edition Book Cover

Chapter 5: Defining Classes*

[The series of excerpts below are from Chapter 5 of the Wrox Press Ltd. title Beginning Java 2 SDK 1.4 Edition. Source code for the examples discussed can be downloaded at the Wrox Web site (free e-mail registration required).]

In this chapter we will explore the heart of the Java language--classes. Classes specify the objects you use in object-oriented programming. These form the basic building blocks of any Java program, as we saw in Chapter 1. Every program in Java involves classes, since the code for a program can only appear within a class definition.

We will now explore the details of how a class definition is put together, how to create your own classes and how to use classes to solve your own computing problems. And in the next chapter we'll extend this to look at how object-oriented programming helps us work with related classes.

By the end of this chapter you will have learned:

Excerpt Contents

# # #


Created: June 24, 2002
Revised: August 5, 2002

URL: http://webreference.com/programming/java/beginning/chap5/