Centre for Development of Advanced Computing(C-DAC) 2007 B.Tech Information Technology C++ programming - Question Paper
Saturday, 02 February 2013 10:55Web
1) Distinguish ranging from the subsequent 2 statements;
time t1(13,10,25);
time t1=time (13,10,25);
2) What do you mean by a default constructor ?What is its role?How is it equivalent to a constructor
having default arguments?
3)What will be the order of constructor invocation for the subsequent code snippet:
class date{.....
......
};
class time{....
...
};
class train{
int train();
date dep_date;
time dep_time;
....
};
int main()
{
date d1;
time t1;
train tr1;
.....
}
Earning: Approval pending. |