Which of the operator is overloaded for object cout ?
Answers
Answered by
1
Explanation:
To get cout to accept a Date object after the insertion operator, overload the insertion operator to recognize an ostream object on the left and a Date on the right. The overloaded << operator function must then be declared as a friend of class Date so it can access the private data within a Date object.
Answered by
0
Answer:
Insertion operator to recognize an ostream object on the left and a date on right
Similar questions