Sign in to follow this  

dont understand what the ':' does

Recommended Posts

Im doing Aaron Cox's tutorials and in this constructor, he has the : and then adds 4 more things, can somebody please explain to me what this is called and what it does/is doing. Thank you very much for any help you can offer, // Main constructor takes location and type of block, and a pointer to our bitmap surface. cSquare(int x, int y, SDL_Surface* bitmap, BlockType type) : m_CenterX(x), m_CenterY(y), m_Bitmap(bitmap), m_BlockType(type) { } -Karakadin

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this