A. Introduction
As seen in 7.2 and 7.3, a double array is perfect for searching or sorting 300 students' heights, GPA etc. What if you need to manage height, weight, date of birth, name and address data of these 300 students. How will you keep all data fields of one student "bundled"?
B. Watch... (Slides)
C. Try this in class:
Imagine you run a fish store. There are 20 types of fish, each with its name, color, weight, life-span, water-type and price. Define a class of Fish, then make up 2 types of fish. You can refer to Student class here.
D. HW: name and define two classes, then specify two objects for each class. Below is a list for reference: Car, City, Tree, Table, Bracelet, Bird, Bicycle, Petunias