CHAPTER 27 — Using Objects and Classes

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to home page   go to next page

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 Point class
  • 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?