Possible Duplicate:
What does a colon following a C++ constructor name do?
I found the example below online however the syntax for the constructor confuses me a little bit especially the : symbol. Could anyone please give me a brief explanation ? Thanks.
struct TestStruct {
    int id;
    TestStruct() : id(42)
    {
    }
};
 
     
     
    