what are instance variables
Answers
Answered by
11
Instance variables are defined within a class but outside of any method, so for any instance of a class they are global in scope.
rightbrothers:
i dont know plz . explain
Answered by
15
Hy there,
An instance variable is a variable defines in class,for which each instantiated object of the class has a separate copy or instance.
An instance variable is similar to a class variable.
Hope my answer is helpful for you... Please mark my answer as brainliest if so....
Thankyou......
An instance variable is a variable defines in class,for which each instantiated object of the class has a separate copy or instance.
An instance variable is similar to a class variable.
Hope my answer is helpful for you... Please mark my answer as brainliest if so....
Thankyou......
Similar questions