#include <string> #include <iostream> class Student { private: string name; string department; public: Student(string n = "", string dep = 0) : name(n), department(dep) {} string get_name() const { return name; } string get_department() const { return department; } void set_name(const string& n) { name=n; } void set_department(const string& d) { department=d; } friend ostream& operator << (ostream& os, const Student& s); }; 1