Question: Why is a static variable also referred to as a class variable? There is a single copy available to all objects of the class. Each
Why is a static variable also referred to as a class variable?
There is a single copy available to all objects of the class.
Each class has one and only one static variable.
It is stored in the separate class area of each object.
It is encapsulated within the class.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
