0
What is the use of static const members in c++?
please can anyone explain me static const members
5 Answers
+ 2
const. means that it CANNOT be changed. no matter what. nit even temporarily.
static is like a global. where you can call it or use it anywhere for anything. a static member of a class could be incremented by one object and printed by another and it would be the value od what the other object incremented it to. I've used static variables to assign key values to specific objects. to identify uniqueness.
hope this helps
+ 1
thank u sir
+ 1
singleton class?? I have never heard of this :/
+ 1
No useđđđđ
0
so is it used to create singleton class?