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:
- Linked list using arrays?
- Explain the difference b/w Null Pointer and Null Nodes? C++...
- error in c++
- What is the Thing Queue? in c++ 2011
- what are Templates?
- what is heap and why we use it
- how can i mail you the snapshot of compiled files.in C++...
- Is constructor necessory in c++? And if than why?
- when we push F1 key to step into a subroutine?
- security and privacy in c
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)