1.

What Is The Difference Between Class Variable, Member Variable And Automatic(local) Variable?

Answer»

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 scope.

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 scope.



Discussion

No Comment Found