I have written a simple, working tetris game with each block as an instance of a class singleblock.
class SingleBlock { public: SingleBlock(int, int)
It is what C++ calls undefined behaviour - you might be able to access the data, you might not. In any case, it is the wrong thing to do.