1 2 3 4 5 6 7 8 9 10 11 12
#include "stuff.h" X::X() { this->i = 1; } int X::y(){ return this->i; } X *SomeX() { return new X(); }