Home Segments Index Top Previous Next

236: Mainline

Note also that none of the default constructors in the classes defined so far—container, box, cylinder, or railroad_car—initialize any member variables. These classes are too general to have sensible default member-variable values. After all, what could possibly be a default height for a box or a default radius for a cylinder.