filmov
tv
Core Java- Bangla Tutorial(static member use with object)- Class 74

Показать описание
Can we call static member using class object?
An object created by a class, should access all the methods present in the class. So it should have the capacity to call the static methods too.
But inside, a static method is never really called on an object instance.
Even if the object instance points to null, it gets called.
An object created by a class, should access all the methods present in the class. So it should have the capacity to call the static methods too.
But inside, a static method is never really called on an object instance.
Even if the object instance points to null, it gets called.