Anonymous
public cpp v1 · immutable#include <iostream>using namespace std;class foo { private: int a, b; public: void rec(int x) { a = x; } void test() { cout << "hej\n" << a << endl; }};int main(void){ foo test; test.rec(7); test.test(); return 0;}