what member variables list after colon constructor good for?


i'm reading c++ open source formula i came constructor nonetheless i don't ( fundamentally since i don't know c++ :p )



i know c java unequivocally well.



 transparentobject::transparentobject( int w, int x, int y, int z ) : 
_somemethod( 0 ),
_someothermethod( 0 ),
_someotherothermethod( 0 ),
_somemethodx( 0 )
{
int bla;
int bla;
}


as distant i "deduce" initial line wholly declares construtor name, "::" sounds "belongs to" me. formula between {} constructor physique self.



i "think" what's after paremeters initial "{" methods default parameters something, nonetheless i don't reasonable reason web. many c++ constructors i found examples roughly relating those java.



i'm i right assumptions? "::" belongs to, list after params physique "default args" something?



update:
thanks answers.
may those called methods? ( i speculation ) inadequacy within constructor body



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?