Static keyword
Static members are those that belong to a class as a whole and not to a particular instance (object). A static member is initialized when the class is loaded. Similarly ,A class can have static methods,static variables and static methods are collectively called as "static members"
Static members in a class can be accessed either by using the class name or by using the object reference,but instance members can only be accessed via object references.
Static members in a class can be accessed either by using the class name or by using the object reference,but instance members can only be accessed via object references.
The static can be:
variable (also known as class variable)
method (also known as class method)
block
nested class
For detailed description and examples ,i am here sharing power point presentation with you , pls download it from given link:
Comments
Post a Comment