In Chapter 2, we introduced you to the fundamentals of the Java language. You now know how to write simple applications by inserting statements into a class’s main() method. However, when you try to develop complex applications in this manner, you’re bound to find development tedious, slow, and prone to error. Classes and objects address these problems by improving application architecture.
In this chapter, we will introduce you to Java’s support for classes and objects. You will learn how to declare ...