Declaring and Implementing

May 2, 2013 at 11:33pm
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
May 2, 2013 at 11:43pm
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;
};
May 2, 2013 at 11:43pm
This is what I got so far for the first two.
May 3, 2013 at 2:13am
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.