I am trying to get values out from several get methods in my class and transfer them to a toString methods to convert them to strings
there are 5 of them. each one returning a different values.
below are the code snippets
string locationData::getSunType(string sunT)
{
return sunT;
}
Not quite. Your method getSunType takes an object of sunT; however, when you call it, you arend passing in anything. The only whay this will work is if you have getSunType defaulted in its declaration to pass in some default value.