Computer Science, asked by Sanathkr, 1 year ago

what are instance variables

Answers

Answered by siddhartharao77
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
siddhartharao77: Simply you can say that the instance variables are declared in a class, but outside of a method. variables which are defined without static keyword are called as instance variables
rightbrothers: thanks brother but i am too weak in maths
rastogibhavya: LOL...
Answered by rastogibhavya
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......

rastogibhavya: Thanku for the brainliest....
Sanathkr: your answer was worth of it
rastogibhavya: Thankxxxc
Similar questions
Math, 8 months ago