You can keep a grip on the new character array using a member variable declared in the railroad_car class. That member variable must be a character pointer:
railroad_car
class railroad_car { public: char *serial_number; ... };