Date.h - / Date.h / Defines a class that stores essential...

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

The preview shows page 2 - 3 out of 3 pages.
// Date.h// Defines a class that stores essential information about a date including day,month, year//---------------------------------------------------------------------------------#ifndef DATE_H#define DATE_H//-------------------------------------------------------------------------------#include <iostream>#include <string>using namespace std;//---------------------------------------------------------------------------------/*** @class Date* @brief Manages all functions and information about date.* * Day, month and year are stored as integer numbers.\n** @author Vu Thanh Long* @version 01 * @date 28/02/2019 Vu Thanh Long, Started** @bug My program has no bugs. Well, maybe it has...*/class Date{public:/** * @brief Default constructor* * This function will set the date to the day: 28/02/2019* * @return none*/Date();/** * @brief second constructor* * This function will set the date according input parameters** @param take value of day, month and year in integer numbers* @return none*/Date(int d, int m, int y);/** * @brief public function to set the value of day. * * @param d - value of day.* @return void*/void setDay(int d);
/** * @brief public function to set the value of month.* * @param m - value of month.* @return void*/void setMonth(int m);/** * @brief public function to set the value of year.

Upload your study docs or become a

Course Hero member to access this document

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