What is the difference between static and non-static variables? Ans. 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. - Study24x7
Social learning Network
24 Jan 2024 10:26 AM study24x7 study24x7

What is the difference between static and non-static variables? Ans. 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.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles