in a method if a variable is declared can you use it outside the method what is the such variable called
Answers
Answered by
3
Answer:
class variables
Explanation:
There is one further level at which variables can be declared. These are class variables. They are variables declared outside of any methods, but within the class, and as such exist for all methods in the class.
Answered by
4
Answer:
Explanation:
class variables
There is one further level at which variables can be declared. These are class variables. They are variables declared outside of any methods, but within the class, and as such exist for all methods in the class.
Similar questions
Math,
1 month ago
Social Sciences,
2 months ago
Computer Science,
2 months ago
English,
10 months ago
English,
10 months ago
Chemistry,
10 months ago