Lesson Three
Dr. James E. Tomayko
Lesson Three Objectives
At the completion of this lesson, the student shall....
- The student shall be able to differentiate between classes and objects.
- The student shall understand the reasons for having public and private
parts of objects.
- The student shall be able to define polymorphism and understand its
application.
- The student shall understand how inheritance from classes to objects works.
- The student shall understand how classes relate through "using."
Read Chapter Three, skimming the obviously "advanced" topics: class life cycle
[106], inheritance and typing [117], multiple polymorphism [127], and also
138-143.
Read everything else in detail, and be prepared to discuss the
following, writing down your answers to numbers 2, 3,
- What are the three characteristics of an object? Identify them for three
everyday objects.
- Design a stack object. What are the operations available? What should be
public and what private?
- What are the three possible roles of a participant in a link? Give one
example of each of the three roles in action.
- What are the three parts of a class interface? Give an example of each in
appropriate action.
- What are the five relationships among classes? Give examples of
inheritance.
- What is polymorphism? Give an example.
- Why is the design of classes and objects frequently an iterative process?
Prev:[OOSD Lesson Two]Next:[OOSD Lesson Four] Cont:[OOSD home page] Up:[ ]
Please direct comments to the current maintainer of this page.
(c) 1995 CMU | Happy, Norm, Sumner