#ifndef VEHICLE_H #define VEHICLE_H #include using namespace std; class vehicle { string name; string sound; public: vehicle(const string& init_name, const string& init_sound) : name {init_name}, sound {init_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