Sponsored Links


Results 1 to 3 of 3

Thread: Default Date in c++ ?

  1. #1
    Senior Member saneha's Avatar
    Join Date
    Apr 2011
    Posts
    266

    Icon19 Default Date in c++ ?

    Sponsored Links1


    Default Date?
    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

  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    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.

  3. #3
    Administrator Xpert's Avatar
    Join Date
    May 2010
    Location
    Jhelum
    Posts
    6,237
    Good answer...................

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Virtual University Last Date to Apply for Admission & Entry Test Date for MS Program
    By education-2014 in forum Virtual University Announcenments
    Replies: 0
    Last Post: 09-29-2014, 09:25 PM
  2. ISL201 Islamic Studies Assignments No.02 Last date Date February 13 2014
    By vuassignments in forum Assignments & Solutions
    Replies: 0
    Last Post: 02-11-2014, 11:16 PM
  3. Default Function Argument with example
    By Vuhelper in forum C++ Programing
    Replies: 0
    Last Post: 05-31-2012, 01:47 AM
  4. Replies: 2
    Last Post: 04-24-2011, 03:13 PM
  5. basic faq by default for vbulletin 4.1.1
    By Xpert in forum Domain & Web Hosting
    Replies: 0
    Last Post: 03-28-2011, 05:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft | Jobs