Home Segments Index Top Previous Next

201: Mainline

In general, constructors, readers, and writers isolate you from the details of how a class is implemented. Once you have written those member functions, you can forget about how they refer to and assign values; none of the details, such as whether you have a radius or a diameter member variable, clutter the programs that use tank_car objects.