static members are used with the class name without creating the object of the class..
we cannot declare local variable as a static.
we cannot use non static member into static member..
Use of Static member into another class
you can use it along with class name without creating the object of the class.
you will get compile time error if you directly use it
we cannot call non static member like this......
we call non static member by creating the object of the class
we cannot declare local variable as a static.
we cannot use non static member into static member..
Use of Static member into another class
you can use it along with class name without creating the object of the class.
you will get compile time error if you directly use it
we cannot call non static member like this......
we call non static member by creating the object of the class
No comments :
Post a Comment