Home Segments Index Top Previous Next

149: Mainline

Once the box_car class is defined, you can introduce a variable with box_car as the variable's data type:

box_car x; 

The syntax is the same as that you use when you introduce a variable with int or double as its data type.