I have a class called Person.
I also have a class called Truck, inherited from class Vehicle.
I want to overload the iostream operators for all three classes so that I can do statements such as:
Person a ;
Vehicle b ;
Truck c ;
cin >> a ;
cin >> b ;
cin >> c ;
Is this possible? If so, how?