php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What are Static Data Members in c++ 2011?
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
What are Static Data Members?
Reply
#2
A variable that is part of a class, yet is not part of any object of that class, is called static data member. Static data members are shared by all instances of the class. Static data members do not belong to any particular instance of a class. The life time of static data member is equal to the entire life time of class. When a data member is declared as static, only one copy of the data is maintained for all object of the class.
Example:
static int noOfStudents;
Best Regards!

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Abstract data type (ADT) in C++ 2012 Vuhelper 0 7,140 01-04-2012, 10:34 PM
Last Post: Vuhelper
  call by value, call by reference,call by pointer in data structure 2012 Vuhelper 0 4,365 01-04-2012, 10:28 PM
Last Post: Vuhelper
  Balance of the AVL tree im Data structure 2012 Vuhelper 0 1,934 01-04-2012, 10:27 PM
Last Post: Vuhelper
  array project code c++ 2011 Vuhelper 0 1,320 12-10-2011, 06:32 PM
Last Post: Vuhelper
  factorial in C++ code 2011 Vuhelper 0 992 12-10-2011, 06:31 PM
Last Post: Vuhelper
  why we use queues data structure for level order traverse? Vuhelper 0 2,508 11-05-2011, 05:26 PM
Last Post: Vuhelper
  Linklist Data Structure Vuhelper 0 1,937 11-05-2011, 05:11 PM
Last Post: Vuhelper
  stack during function call in C++ 2011 Vuhelper 0 2,068 11-05-2011, 05:05 PM
Last Post: Vuhelper
  What is the Thing Queue? in c++ 2011 Vuhelper 0 1,822 11-05-2011, 05:02 PM
Last Post: Vuhelper
  ASCII to char conversion code in C++ 2011 Vuhelper 0 1,766 11-05-2011, 05:01 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support