ABSTRACT

Java concepts Class, object, parameter passing, method invocation, method creation, categories of variables, and default constructor

Programming skills Design, implement, and test a simple Java program in a purely object-oriented way

In Chapter 2, you have learned how to create a simple application program. Every program in Chapter 2 has exactly one class and one method, the main, and every variable and executable statement is placed inside the method main. In this chapter, you will learn to create new classes. Recall that a class encapsulates both data and operations. You will also learn to create objects or instances of a class. Th us, in this chapter you learn to design a program in a purely object-oriented way.