Exemplo n.º 1
0
int main() {
	Counter counter;
	cout << "The value of val is " << counter.getItsVal() << endl;
	counter.increment();
	cout << "The value of val is " << counter.getItsVal() << endl;
	return 0;
}
Exemplo n.º 2
0
int main() {
	int var = 5;
	Counter counter = var;
	cout << "The value of val is " << counter.getItsVal() << endl;
	return 0;
}