I have a class called Car, 6 other classes (Van,Cab,Truck, Taxi, Sedan and Motorbike) that implement this class. Each of the subclasses has its own mnethods and attributes.
How would I go about creating an array of these vehicles with the type of car being randomly selected. that is I would like to have an array that looks like this
ArrayLaneSouth = {Van,Cab, Taxi, Sedan}
ArrayLaneNorth = {Van,Cab, Taxi, Sedan}
ArrayLaneWest = {Van,Cab, Taxi, Sedan}
ArrayLaneEast = {Van,Cab, Taxi, Sedan}
the elements in the arrays are types of cars and the type be selected randomly.