Team LiB
Previous Section Next Section

Chapter 6: Collections of Objects

Overview

You learned about the process of creating objects based on class definitions, a process known as instantiation, in Chapter 3. When we're only creating a few objects, we can afford to declare individualized reference variables for these objects: Students s1, s2, s3, perhaps, or Professors profA, profB, profC. But, at other times, individualized reference variables are impractical.

Fortunately, OOPLs solve this problem by providing a special category of object called a collection that is used to hold and organize other objects.

In this chapter, you'll learn about


Team LiB
Previous Section Next Section