Answers for "static class variable initialization c++"

C++
1

c++ initialize static variable

// in c++ static variables can only be initalized at run time
Posted by: Guest on October-11-2021
-1

how to initialize static member variable of a class in c++

// Initialize static member of class Box
type_of_static_member(int)  Name_of_class::Name_of_static_member = intial value;
Posted by: Guest on November-25-2021

Code answers related to "static class variable initialization c++"

Browse Popular Code Answers by Language