Regarding the rule of three
My question regards the rule of 3- For those unfarmiliar
if one has a very basic class like the following:
int Type;
foo::foo(int type)
{
Type=type;
}
why should one create a destructor? Can the default one not deal with the
int that has been created? When should one follow the rule of 3, when
should one not?
No comments:
Post a Comment