What are the instance and class variables? .
Answers
Answered by
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
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
Math,
5 months ago
Psychology,
5 months ago
Social Sciences,
9 months ago
Math,
9 months ago
English,
1 year ago
Social Sciences,
1 year ago