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

Yeah, that's my understanding as well. It's confusing sometimes, but in this case, it's just a distraction and indeed doesn't relate to the heart of the matter.