This preview shows page 1. Sign up to view the full content.
Unformatted text preview: tion: inheritance vs.
attribute? When designing a project, a question often
occurs Do I make B inherit from A? Or, do I add an object of type A as attribute of B? This can be solved for instance with the “is
Both choices can lead to a valid
implementation But design may be less clear in one case vs. the
Let’s design a hierarchy for images 9...
View Full Document
This note was uploaded on 04/03/2014 for the course CS 31 taught by Professor Melkanoff during the Fall '00 term at UCLA.
- Fall '00