How many copies of a static member of the class are created?
Answers
Answered by
6
one copy
When we declare a member of a class as static it means no matter how many objects of the class are created, there is only one copy of the static member. A static member is shared by all objects of the class. All static data is initialized to zero when the first object is created, if no other initialization is present.
Answered by
1
Hii
you are welcome in my ans
one copy
__/\__☺️
hope it may helps you ✊✌️
Similar questions