I am trying to create a linked list that includes two types of subobjects. I'm struggling to explain this. Basically, I have a vehicle class and I am trying to create one linkedlist the contains objects from both my cars and trucks classes.
In my vehicleManager class I am trying to create the list like so: