#include <iostream>
#include <string>
using namespace std;

class User {      
    string name;
    int age;
public:
    User( string str, int yy ) { name = str;  age = yy; } 

    friend ostream& operator<<(ostream& os, const User& user) {   //(C)
        os << "Name: " << user.name << " Age: " << user.age << endl;
        return os;
    }
};

int main()
{
    User us( "Zaphod", 119 );
    cout << us << endl;          // Name: Zaphod  Age: 119        //(D)
    return 0;
}