Hi I have a question about classes. If you have a class and its constructor takes arguements. Is there a way you can create an array that stores objects from that class but each one of them getting diefferent arguements?
Btw, I'm using it to create a game using SDL, tetris and I have a class fo blocks and for the pieces and I want the pieces class to have an array that stores the blocks in its piece.
Thanks in advance.
Btw, I'm using it to create a game using SDL, tetris and I have a class fo blocks and for the pieces and I want the pieces class to have an array that stores the blocks in its piece.
Thanks in advance.
Comment