English, asked by ravindrabarve3205, 1 month ago

What is a class? When do we declare a member of a class static​

Answers

Answered by sapnakumawat07
16

Answer:

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.

Similar questions