Is the following acceptable ..
Code:#include <time.h> #include <iostream> class Date { public: Date(Date& d); // THIS ** // Give access to the object Date getDate() { return date; } // This is the reason I'm having the above void SetDate(tm curr_tm); static tm getCurrentTime(); int getDay(){return day;} int getMonth(){return month;} int getYear(){return year;} int getHour(){return hour;} int getMinute(){return minute;} tm getLocalDT(){return local_dt;} friend std::istream& operator>>(std::istream& in, Date& date); friend std::ostream& operator<<(std::ostream& out, const Date& date); private: int day; int month; int year; int hour; int minute; tm local_dt; Date &date; // THIS ** }; #endif;