aboutsummaryrefslogtreecommitdiff
path: root/oop2w3/B.cpp
blob: 42ae7dea7fb7c8b3da3194ec209d01275bba6ca7 (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
#include <iostream>

#include "A.h"
#include "B.h"

B::B(A &a) {
	std::cout << "B::B(a)" << std::endl;
	_a = &a;
	_c = new C();
}

void B::even() {
	std::cout << "B::even()" << std::endl;
}

void B::odd(int i) {
	std::cout << "B::odd(" << i << ")" << std::endl;
}

void B::actie2(int i) {
	std::cout << "B::actie2(" << i << ")" << std::endl;
	actie3();
	if (i < 3) _c->actie4();
}

void B::actie3() {
	std::cout << "B::actie3()" << std::endl;
}