How does this do what it does (C++ classes, use of colon)

Try this: C++, What does the colon after a constructor mean? - Stack Overflow
Note the top-voted answer. I think it answers your question as well. It's a way of initializing member variables based on arguments.

1 Like