#include using namespace std; class nt { public: void print() { cout << "Hello from object\n"; } }; void print_obj() { cout << "Hello from function\n"; nt obj; obj.print(); }