blob: 094d1df467ea98d90fe822fe964d6c87a42183ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include <iostream>
/*
*
* 7.35
*
*
*/
typedef std::string Type;
Type initVal();
class Exercise {
public:
typedef double Type;
Type setVal(Type); // double / double
Type initVal(); // double
private:
int val;
};
Exercise::Type Exercise::setVal(Exercise::Type parm) {
val = parm + initVal(); // double initVal() is used
return val; // Return val as double?
}
Exercise::Type Exercise::initVal() {
return 0;
}
int main () {
return 0;
}
|