As defaultDate is a class wide variable and we want to set the default date for all the objects when created, therefore defaultDate is set as static data member.
Default Date?View more random threads:
- Explain the difference b/w Null Pointer and Null Nodes? C++...
- Passing 2d array by reference June 2011
- c
- array project code c++ 2011
- how to make .h file in c++
- What is the syntax of copy constructor in c 2011
- calculation k kam to calculator sai bi kar late hai aur age...
- What is generalization in c++ 2011
- Changing text color in c++ 2011
- Const keywor in c++ 2011
Dear Sir, I did not understand that in date class example, why we choose to take default as static data member, please elaborate. Thanks
Sponsored Links
As defaultDate is a class wide variable and we want to set the default date for all the objects when created, therefore defaultDate is set as static data member.
Good answer...................
Urgent call: 03455242488. | Virtual University Assignments
Virtual University GDBs | Virtual University Papers | Vu Projects | Vu Handouts
About Expert
There are currently 1 users browsing this thread. (0 members and 1 guests)