Chapter 8. Objects at work
8.1 Designing an object-oriented program
8.2 Properties of objects
8.3 Lists and iterators
8.4 Case Study 3: Nelson’s Coffee Shop
Java is an object-oriented language and, in earlier chapters, we introduced and used both objects and classes in many examples. Now that we have covered the basic constructs of Java, it is time to look at the real power of objects, and how they are used in larger programs. In this chapter we discuss objects using a case study of a typical inventory program. In the next chapter we go on to look at further capabilities of objects, such as inheritance, interfaces and abstract classes, and explore some ...