when will you use instance variable and class variable
Answers
Answered by
2
Answer:
Wait.......
Explanation:
Well.....
Here is the response.....
Pls follow me
A variable which is defined in class and instantiated with the creation of object is an Instance variable since the scope of such variable is limited only for that object. Instances variables are declared without Static modifier and can be used within the context of the object of the class.
tapasyathakor:
thanks brother
Similar questions