created: 06/03/98; revised: 10/09/98, 01/20/00, 02/18/02, 01/18/06, 11/02/08
CHAPTER 27 — Using Objects and Classes
This chapter reinforces the topics introduced in the last
two chapters, and discusses
several new topics.
The Point class
class is used as an example.
Chapter Topics:
- The
Pointclass - Class descriptions
- The
toString()method - Changing the data in an object vs constructing a new object
- The
equals()method - The
==operator (again) - Aliases
You have seen some of the material in this chapter before. But, don't rush through it. The purpose of this chapter is to review topics that you may still be somewhat unclear about.
QUESTION 1:
In geometry, what is a two dimensional point?