This looks like it is supposed to be a constructor; if it is, it should have no return type, and it needs to have the same name as the class, e.g.,
myClass::myClass()
: member1(0), member2(1)
{
}
Only a constructor can have an initializer list; you can't delegate that type of initialization to an Init
function.
Any nonstatic members can be initialized in the constructor initializer list. All const and reference members must be initialized in the constructor initializer list.
All things being equal, you should generally prefer to initialize all members in the constructor initializer list, rather than in the body of the constructor (sometimes it isn't possible or it's clumsy to use the initializer list, in which case, you shouldn't use it, obviously).