What is static keyword ?

When a variable or function declared as static then it cannot be accessed with an instantiated class object. It is treats as public if no visibility is defined. It can also be used to define static variables and for late static bindings.

Suggest An Answer

No suggestions avaliable!

Latest post from oops interview questions

Ask Question