< Back

Post Lab 6

You learned one of the most complicated topic related to objects, inheritance. Using inheritance effectively relies on understanding the "is-a" vs. "has-a" relationship. For the following examples, describe which relationship (if any) there is between the options.

  1. Deck of Cards vs. Playing Cards
  2. Playing Cards vs. Suit
  3. Racecar vs. Car
  4. Boots vs. Shoes
  5. Laces vs. Boots
  6. Laptop vs. Keyboard
  7. Computer vs. Laptop
  8. Sun vs. Solar System
  9. Sun vs. Planet
  10. Pluto vs. Planet

Submission

Please complete this worksheet before class on Friday.