#include <iostream>
using namespace std;

class test {
private:
	int a;
	int b;

public:
	test();
	void foo() const;
};

test::test() {
	int a = 3;
	int b = 4;
	
	cout << "a: " << a << ", b: " << b << endl;
}

void test::foo() const {
	cout << "a: " << a << ", b: " << b << endl;
}


int main() {
	test t1;
	t1.foo();
	
	cout << endl;
	
	const test t2;
	t2.foo();
	
	return 0;
}