Explain the uses of static class data?



Explain the uses of static class data?..

Answer / Sunanda Biswas

Static class data is a variable or function that belongs to a class but not to any particular object of that class. It is shared among all objects of the same class. Static members are used to store information common to all instances of the class, such as a counter for the number of objects created.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What does new in c++ do?

1 Answers  


What is the arrow operator in c++?

1 Answers  


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1 Answers  


What do you know about friend class and friend function?

1 Answers  


What are the differences between a struct in C and in C++?

8 Answers   Amazon, Wipro,


When volatile can be used?

3 Answers   Symphony,


Is c++ a pure oop language?

1 Answers  


How does list r; differs from list r();?

1 Answers  


Can we have "Virtual Constructors"?

10 Answers   TCS,


How do you add an element to a set in c++?

1 Answers  


Show the application of a dynamic array with the help of an example.

1 Answers  


check whether a no is prime or not.

3 Answers   TCS,


Categories