Examples


Use class interchangeably with type.

Example #1

Think of five "classes" (object types). Description

Think of:
Tips


Hints

Solution


Example #2

Given a class (object type) called Student.
Think of five possible instances (objects) of class/type Student. Description


For simplicity let's just use first name to describe these Student objects. Tips

Hints

Solution



Example #2

We may define a Lake to have a name, location, depth and size. Three examples of Lakes are: "Lake Superior", "Parker's Lake", "Medicine Lake".

Which are the class(es) and which are the object(s) ? Description


Classes are definitions.
Objects are instances or real occurrences. Tips


Hints

Solution


Example #3

Think of a blank college application. The application is like a class. It has been designed with blank fields to capture information. For this example, assume the original blank college application sits in the admissions office. How would we use the application? Description

List the steps that an admissions person might take. Tips

Hints

Solution