Name Suche und Klassenbereich
Warum ist der Rückgabetyp von setVal vom Typ string und der Parametertyp vom Typ double
typedef string Type;
Type initVal();
class Exercise {
public:
typedef double Type;
Type setVal(Type);
Type initVal();
private:
int val;
};
Type Exercise::setVal(Type parm) {
val = parm + initVal();
return val;
}