Create an abstract class of rail transport.
Classes of successors: cargo, passenger and electric
Fields: the number of wagons, the length of the warehouse, the number of passengers in the wagon, the load.
Compare the number of passengers and cargo.
Classes of successors: cargo, passenger and electric
Fields: the number of wagons, the length of the warehouse, the number of passengers in the wagon, the load.
Compare the number of passengers and cargo.