Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

operator overloading

std::ostream& operator<<(std::ostream& out, const Course& course)
{
    out << course.getName(); // for example
    return out;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #operator #overloading
ADD COMMENT
Topic
Name
6+7 =