[Edit: sorry, mixed up base & subclass initially]
Given
class Car : public Vehicle {...}
I would like to declare a global variable of type Vehicle (or &Vehicle if need be), initialized as a Car instance... something like
Vehicle &myCar = Car(red);
... except that the above doesn't compile. What matters to me is that the instance is allocated in exactly the same way as if I had used (this is for AVR programming)
Car myCar(red);
I have searched but I just can't figure out the syntax for this??
Thanks!