#include #include class Say { public: Say(std::string message) : m_message(message) {}; void something(void) { std::cout << m_message; }; private: std::string m_message; }; int main(void) { std::string hello = "Hello World!"; Say say(hello); say.something(); return 0; }