You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
465 B
31 lines
465 B
3 years ago
|
#ifndef WORK20220325_DATE_H
|
||
|
#define WORK20220325_DATE_H
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
class Date {
|
||
|
private:
|
||
|
int year;
|
||
|
int month;
|
||
|
int day;
|
||
|
public:
|
||
|
Date(int year, int month, int day);
|
||
|
|
||
|
Date() = delete;
|
||
|
|
||
|
Date(const Date &date);
|
||
|
|
||
|
int getYear() const;
|
||
|
|
||
|
int getMonth() const;
|
||
|
|
||
|
int getDay() const;
|
||
|
|
||
|
void setDate(int year, int month, int day);
|
||
|
|
||
|
std::string toString() const;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif //WORK20220325_DATE_H
|