The paper states that with the introduction of cStar and cDiamond, the same class no longer represents both stars and diamonds. Even though both are derived from cShape and even though neither adds new features, cStar and cDiamond objects are different. These differences cast a big shadow on design because they force difficult choices between inheritance and vectorization.
Object Arrays with Inheritance, Page 1 of 2
< Previous page Next page > /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch13-1.gif /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch13-2.gif