title: Exercise with Data: day,month,year
body: <p>Please help with the task, it sounds like this:  </p>
  
  <p>Create class with fields Date: day, month, year; Function-method 1 of data processing: Increase year by 1; Function method 2 of data processing: reduce date by 2 days; +   </p>
  
  <p>Implement the following methods in the class:<br>
  1. The default constructor<br>
  2. Constructor overload with parameters<br>
  3. Memory Destructor (with Object Destruction Notification)<br>
  4. Data processing functions<br>
  5. The function of forming a string with information about the object  </p>
  
  <p>Here is the code I was trying to make:</p>
  
  <pre><code>class Date {
      int year;
      int month;
      int day;
  public:
       Date();
       Date(y, m, d);
       bool operator==(const Date &amp;other) const;
       void setYear(y);
       void setMonth(m);
       void setDay(d);
       //...
  };
  Date::Date() {
       year = 0;
       month = 0;
       day = 0;
  }
  Date::Date(y, m, d) {
       year = y;
       month = m;
       day = d;
  </code></pre>