I have an abstract class Vehicle with 2 implemented subclasses RedVehicle and YellowVehicle.
Vehicle
RedVehicle
YellowVehicle
In another class I have a List
List
Do this instead:
public void exampleMethod(Class type)