CHAPTER 25 — Objects

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        

revised: 8/30/99, 01/20/00, 07/13/02, 01/17/06

CHAPTER 25 — Objects

Until now, we have not been doing much with objects. This chapter discusses objects and classes, and how an object-oriented language like Java is different from languages that are not object-oriented.

Chapter Topics:

  • What is an Object?
  • What is a Class?
  • Characteristics of Objects
  • Static Methods
  • Constructors
  • Cookie Cutters
  • Dot Notation

Forget programming for a while. Think about the World and the things that are in it. What things are objects? What things are not objects? This is actually a difficult problem which has occupied philosophers for thousands of years. Don't be too worried if it is not immediately clear to you.

QUESTION 1:

List four objects and list four non-objects.

 ObjectsNon-objects
 1   
 2   
 3   
 4