can void return a value? and does string getCourseName and return courseName do different things or they do the samething?
example:
string getCourseName()
{
return courseName;
}
void displayMessage()
{
cout << "Hello" << getCourseName();
}
Other Answers:
getCourseName() is the method that returns a string variable called courseName
0 коммент.:
Post a Comment