Declaring and Implementing

Declare and Implement a Default Constructor for class Date
Declare and Implement a Copy Constructor for class Date
Declare and Implement an overloaded equality operator (==) member function for class Date
Implement and Declare an overloaded output operator (<<) function as a friend of class Date
1
2
3
4
5
6
7
8
9
10
11
class Date
{
public: 
Date(int day, month, year)
Date(const Date&, int day, month, year)

private:    
int day;    
int month;    
int year;
};
This is what I got so far for the first two.
Was there a question there somewhere? Please be specific about what you need help in. For example, do you want to know what overloaded operators are? Or are you stuck on how to implement the functions? Maybe one of your functions is causing a compiler error?

By the way, you're missing semi-colons after your function prototypes.
Topic archived. No new replies allowed.