Showing posts with label variables. Show all posts
Showing posts with label variables. Show all posts

Tuesday, May 25, 2010

difference between class variable, member variable and automatic(local) variable

class variable
class variable is a static variable and does not belong to instance of class but rather shared across all the instances
Member variable
member variable belongs to a particular instance of class and can be called from any method of the class
locale variable
automatic or local variable is created on entry to a method and has only method scope