Help please

I have this interface that I need to implement :

Part1 . Implement the class Date defined as follows:

/* Date.h */
#ifndef DATE_H_
#define DATE_H_
class Date {
public:
Date(); // constructor
void setDate( int, int, int ); // set day, month, year
friend ostream & operator<<(ostream &, Date &); // print date format "month dd, yyyy (example: January 11, 2013)
friend istream & operator>>(istream &, Date &); // to read date
private:
int day;
int month;
int year; //
};
#endif /* DATE_H_ */



here's what I did :

Date.cpp

#include "Header.h"
#include <iostream>
using namespace std;



Date::Date();


void Date::setDate( int d, int m, int y )
{
day=d;
month=m;
year=y;
}




ostream & operator<<(ostream & out, Date & x)
{
out<< x.month << " " << x.day << ", " << x.year ;
return out;
}
istream & operator>>(istream & in, Date & x)
{
in>> x.day >> x.month >> x.year ;
return in;
}



it's given me an error saying
date.cpp(7): error C2761: '{ctor}' : member function redeclaration not allowed
Solved the error, but still it executes a blank window with "press any key to continue"
Topic archived. No new replies allowed.