Class Data - operations on dates.#9074

Class Data - operations on dates.

1 second
64 megabytes
Very easy

Create a class Data that includes the fields day, month, and year.

Implement the following constructors:

Date validation is not required; it is guaranteed that the input date will be correct (the year will be between 0 and 2050).

Implement the following method:

Overload the following operators:

Comparison operators:

For evaluation, only submit the class.

Evaluation will be performed in C++.

Test details: