Tetriminos class [tetris]

I’m trying to make a Tetris game using mostly C++
My first idea would be a Tetriminos class for the single Tetris pieces
Each Tetriminos has a color and a shape
Now for the hard part: technically a Tetriminos is made of 4 cubes (so I would make a static mesh Cube) to which I have to “attach” the color and most importantly the position in the space
This is where I start panicking

I have no clue on how implementing this, how, in other words, I should “link” these 4 cube meshes to the class and then positioning them according to the shape