What is the difference between class variable, member variable and automatic(local) variable

class variable is a static variable and does not belong to instance of class but

rather shared across all the instances

– member variable belongs to a particular instance of class and can be called from any

method of the class

– automatic or local variable is created on entry to a method and has only method