Im not to familiar with c++ and im wondering what the : means in
Googling on ':' doesnt really help :)Code:Abc :: Abc(): somefunc()
{
}
I thought it is some sort of initialisation, but i cant seem to find a good description of it.
Printable View
Im not to familiar with c++ and im wondering what the : means in
Googling on ':' doesnt really help :)Code:Abc :: Abc(): somefunc()
{
}
I thought it is some sort of initialisation, but i cant seem to find a good description of it.
Yes, it's an initialization list for constructors. It's used to initialize base classes or object members that don't have a default constructor.Quote:
Originally Posted by johny145
This article describes them. And the Microsoft reference.
edit:
Bruce Eckel's Thinking in C++ also talks about them here.