Readers: 8
2 entries, 1 page |
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
class A {
private:
const int x;
public:
A(int _x) : x(_x) {
}
inline int getX() const {
return x;
}
} ;
class B : public A {
private:
const int y;
public:
B(int _x, int _y) : A(_x), y(_y) {
}
inline int getY() const {
return y;
}
} ;
2 entries, 1 page |