2010-09-27, 04:57 PM
It seems standard in Java to have print functions (usually via toString() ) return a string describing the object, which you then print to whatever device. I'm not sure what the benefit is of having the function go directly to cout instead of doing cout<<course.displayCourseData()<<endl; and having string CollegeCourse::displayCourseData() as the header.

