#ifndef VEHICLE_H #define VEHICLE_H #include using namespace std; class vehicle { string name; string sound; public: vehicle(const string& initial_name, const string& initial_sound): name {initial_name}, sound {initial_sound} {} virtual ~vehicle() {} void honk() const { cout << "The " << name << " goes " << sound << "!\n"; } virtual void funFact() const { cout << "Fun fact: Vehicles have transformed human transportation!\n"; } }; #endif