write header

can any body help me with this question

question : Assume a class named Dollars exists. Write the headers for member functions that overload the prefix and postfix ++ operators for that class.
1
2
3
4
5
6
7
class Dollars
{
  int dollars;
public:
  Dollars& operator++();
  Dollars operator++(int);
};
Topic archived. No new replies allowed.