#pragma once #include using namespace std; class animal { public: std::string name; // define make_sound as virtual to allow overriding in subclasses virtual void make_sound(); animal(std::string name); };