adspace


What are the uses of static class data?

Answer Posted / Navram Singh

Static class data is used to maintain shared state across multiple object instances of a class. It is often used for storing constants, counters, or other global data within a class. Static data members are initialized only once and are accessible to all objects of the same class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1172


What is the latest version on c++?

1217


daily Routine of father

1489


Can union be self referenced?

1275


What character terminates all character array strings a) b) . c) END

1403