What is class variables

What is class variables

Answer: When you define any variable static that is called class variables. Instance variables declared as static are, essentially, global variables. When objects of its class are declared, no copy of a static variable is made. Instead, all instances of the class share the same static variable.

Leave a Reply

Your email address will not be published. Required fields are marked *