Introduction to Object Oriented Programming, 3rd Ed

Timothy A. Budd

Chapter 7

Case Study: A Billiards Game

Outline

  1. Purpose of Chapter
  2. Picture of Billiards Table
  3. Graphical Object Class
  4. Objects must be initialized
  5. Graphical Objects can Draw themselves
  6. Objects can be Hit
  7. Balls move when updated
  8. Reaction to Mouse Down Events
  9. Using Inheritance
Source Code

Other Material

Intro OOP, Chapter 7, Slide 1