I have Cube class , wich contains 3 functions , int (w ich could be constructor btw doesnt matter at the moment I guess) , draw and collide.
In my int main I have called all of this functions and it all works just fine.
But what if I want 2 cubes and I dont want to make Cube2 class , but I want to call the same class and same functions to do this job with maybe different x/y
how am I gooing to do this? declare class cube as a vectore? would really use some help .Also I will include my class Cube code so you can maybe edit it to explain me better.
Your "Cube class" looks like "class Cube_Class" and by its contents you could have used "namespace Cube_Class" instead. Your code does use type "Cube" though, probably "struct Cube".
A type is just a type. One can instantiate as many variables of that type as necessary (sans the Singletons).