1.

What Is The Difference Between Static And Non-static Variables?

Answer»

A STATIC variable is associated with the CLASS as a whole rather than with SPECIFIC INSTANCES of a class.

Non-static variables take on unique values with each OBJECT instance.

A static variable is associated with the class as a whole rather than with specific instances of a class.

Non-static variables take on unique values with each object instance.



Discussion

No Comment Found