mean of the last : in members declaration
what is the meaning of the last :class() declaration on the the folowing member function definition.?
Code:
CLASSX::CONSTRUCTORX (params, ..) :CLASSY(param2){
...
}
I know that :
class CLASSX: public CLASSY
{
...
CONSTRUCTORX(param,..)
}
and
the class CLASSY have a constructor with one param.
First I think that it is for call the CLASEY construsctor but, if CLASSY<--CLASSX i suppose that the constructor CLASSY cosntructor is calling by default.
or not?
help please!