why definition of two constructors like these is not possible in c++???
-----------------------
date::date(cons t int d, const int m, const int y, const int ora, const int
mi, const int se){
day_ = d;
month_ = m;
year_ = y;
secondo_ = se;
minuto_ = mi;
ora_ = ora;
}
date::date(){ date(0,0,0,0,0, 0); }
---------------
thanx
Giulio
-----------------------
date::date(cons t int d, const int m, const int y, const int ora, const int
mi, const int se){
day_ = d;
month_ = m;
year_ = y;
secondo_ = se;
minuto_ = mi;
ora_ = ora;
}
date::date(){ date(0,0,0,0,0, 0); }
---------------
thanx
Giulio
Comment