what is the difference between instance variable and methods and their counterparts,clas variable and methods?
i understood that instance is other name for object but what i have undersood till know is that method is somewhat like function (but i could not understand the explaination given for this question in the book i am reading for self study). i am afraid of java plz help to clear my concepts
shivaniaroraji 0 Newbie Poster
Recommended Answers
Jump to PostInstance variable/method - Variables/methods that are specific to each instance (object) of the class e.g. name, age.... When accessing/calling them, the object, as the reference has to be used as a handle.
Class variable/method - Variables/methods that represent/deal with class wide situation, e.g. a static variable which belongs to a …
All 4 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.