How to intialize static data memebers outside class in c++?
Answers
Answered by
0
Outside of the class definition, prefixed with ClassName::
****
The same variable or function will be only one copy exists. No matter how many objects u create. All the objects use the same variable or function.
****
The same variable or function will be only one copy exists. No matter how many objects u create. All the objects use the same variable or function.
Similar questions