Once you have a way to make lists of railroad cars, you could make lists of
other objectssuch as cylinders or integersby editing the link
and header
class definitions by hand, replacing the
railroad_car
string of characters by another string of characters
appropriate to the new type.
Of course, there are good reasons why creating list class definitions
by manual editing of the existing header
and link
class
definitions is a bad idea:
header
and
link
, corresponding to each type of object that you want to put into
lists.