Consider the following instructor , I had to initialize treeItem and status anyway , but in a overloaded function , I can introduce the id variable as well.
But it looks silly , I shouldn't be doing this in both of the functions , any suggestions ?
Contact ()
{
treeItem = NULL;
status = offline;
}
Contact (const QString & id)
{
treeItem = NULL;
status = offline;
this->id = id;
}