Param y value of year return void void setyearint y

This preview shows page 2 - 3 out of 3 pages.

* * @param y - value of year.* @return void*/void setYear(int y);/** * @brief public function to set the value of full date.* * @param d - value of day, m - value of month, y - value of year.* @return void*/void setFullDate(int d, int m, int y);/** * @brief public function to convert to the name of the month* * @param m - value of month in integer number* @return value of month in string*/string convertMonth(int m) ;/** * @brief public function to get the value of day.* * @return value of day*/int getDay() const;/** * @brief public function to get the value of month.* * @return value of month.*/int getMonth() const;/** * @brief public function to get the value of year.* * @return value of year.*/int getYear() const;/** * @brief Overload function that compare two Date objects* * @param Date& - otherDate* @return true if two objects have same value of day, month, year*/bool operator == (Date& otherDate) const;/** * @brief Overload function that compare two Date objects
* * @param Date& - otherDate* @return true if this day come first*/bool operator < (Date& otherDate) const;/** * @brief Overload function that compare two Date objects* * @param Date& - otherDate* @return true if two objects have same value of day, month, year or this day come first*/bool operator <= (Date& otherDate) const;/** * @brief Overload function that compare two Date objects* * @param Date& - otherDate* @return true if this day come later*/bool operator > (Date& otherDate) const;/** * @brief Overload function that compare two Date objects* * @param Date& - otherDate* @return true if two objects have same value of day, month, year or this day come later*/bool operator >= (Date& otherDate) const;private:int day;/*!< variable to store the value of day */int month;/*!< variable to store the value of month */int year;/*!< variable to store the value of year */};/** * @brief Overload output operator.* To print object** @param ostream& osObject, Date& date1* @return ostream&.*/ostream& operator << (ostream& osObject, const Date& date1);/** * @brief Overload input operator.* To input value into object** @param istream& isObject, Date& date1* @return istream&.*/istream& operator >> (istream& isObject, Date& date1);#endif
End of preview. Want to read all 3 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
One
Professor
N/A
Tags
public function, Vu Thanh Long

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture