calthoff / tstp

This is an old repository for the exercises in "The Self-Taught Programmer." Please see /selftaught.
166 stars 193 forks source link

fix the relationship between horse and rider #38

Closed masayas closed 3 years ago

masayas commented 3 years ago

Problem

The book says

  1. Create a class called Horse and a class called Rider . Use composition to model a horse that has a rider.

However, the answer to the question is written like model a rider that has a horse

Resolution

I fixed the relationship between horse and rider as was stated in the question.