#include using std::cout;using std::endl;class MyClass{public: void displayMessage() { cout << "Welcome!" << endl; } };int main(){ MyClass obj; obj.displayMessage(); return 0;} Welcome!