Home Segments Index Top Previous Next

493: Mainline

You can, if you wish, arrange for explicit calls to more than one constructor. You simply separate the calls by commas, as in the following example, in which two calls appear to argument-bearing constructors, one of which is a hypothetical, argument-bearing, railroad_car constructor:

box_car ( ) : box (10.5, 9.5, 40.0), 
              railroad_car (arguments) 
              { }