Computer Science, asked by rajeshmauryamau25, 9 months ago

What are the instance and class variables? .​

Answers

Answered by Anonymous
13

Answer:

hlw mate ❤️

here is your answer....

hope it helps...

An instance variable is similar to a class variable. An instance variable is a variable which is declared in a class but outside the constructor and the method/function. Instance variables are created when an object is instantiated, and are accessible to all the methods, the constructor and block in the class.

#sara❤️

Explanation:

PLZ MARK AS BRAINLIEST ✌️✌️

Answered by Bhumiraghav
2
An instance variable is similar to a class variable. An instance variable is a variable which is declared in a class but outside the constructor and the method/function. Instance variables are created when an object is instantiated, and are accessible to all the methods, the constructor and block in the class.
Similar questions