I have two classes one called Date and the other is University , Date class has two overloaded operators , ostream and istream to take in the data and print them out :
The University class has an object of type Date called establishDate and I must use this to print out the date along with the University name and location, here's University class :
University.h
class University {
public:
University (); // constructor
friend ostream & operator<<(ostream & out, University & x); // print the university data
friend istream & operator>>(istream & in, University & x); // to read university data
private:
const static string uname;
string location;
Date establishDate;
};