summaryrefslogtreecommitdiff
path: root/7p35.cpp
blob: 1b8d7cc4af763f064ce0740a06fc2e9a0ab786f8 (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
#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;
}