Explain the following code, indicating which definition of Type or initVal is used for each use of those names. Say how you would fix any errors.
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;}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.