CHAPTER 30 — Defining Your Own Classes
The previous chapters have discussed
how to use objects and their methods.
The objects were constructed
using classes from the Java libraries.
This chapter discusses how to define
your own classes and construct objects using them.
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.