In the previous papers, objects were constructed in the most basic way because no arguments were passed into the constructor. With a no-argument constructor, all objects are constructed using the same initial values. For the cShape class, this basic approach worked because Part focused primarily on encapsulation mechanics. It turns the attention to inheritance and the development of class hierarchies. With the development of class hierarchies, it needs a richer set of construction options.
Constructor Redux, Page 1 of 2
< Previous page Next page > /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch11-1.gif /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch11-2.gif