We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Overloading Ostream Operator
Overloading Ostream Operator
Sort by
recency
|
67 Discussions
|
Please Login in order to post a comment
I know the fact that overloading ">>" operator was useless, i forgot to delete it when i was uploading the solution, you can totally omit tho.
Is this a 'medium difficulty' problem?
Shouldn't the overloaded << operator function be declared as a friend of class Person, so that it can access the private data within a Person object?