ABSTRACT

In the first part of this book, 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 Part 1

cShape

class, this basic approach worked because Part 1 focused primarily on encapsulation mechanics. Now that we understand encapsulation, we will turn our attention to inheritance and the development of class hierarchies. With the development of class hierarchies, we also need a richer set of construction options.