created: 11/13/98;  revised: 12/12/98; 09/12/99; 01/20/00

CHAPTER CHAPTER 30 --- Defining Your Own Objects

The previous chapters have discussed how to use objects and their methods. But all the objects have been created using a class from one of the Java libraries. This chapter discusses how to define your own classes and objects.

Chapter Topics:

  • Object Oriented Programming.
  • Syntax of Class Definitions.
  • Syntax of Method Definitions.
  • The return statement.
  • The void return type.
  • Object Oriented "Hello World" example.
  • Testing Classes.

QUESTION 1:

(Review:) what is the difference between a class and an object?

Click Here after you have answered the question