0

Why we can use static keyword befour the method?

16th Dec 2017, 1:22 PM
Jayshri Patil
Jayshri Patil - avatar
3 ответов
+ 10
if you use static keyword before a method, you will be able to call it without creating any instance of the class
16th Dec 2017, 1:34 PM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
+ 2
Why shouldn't we be able to? Is the method not static?
16th Dec 2017, 1:24 PM
J.G.
J.G. - avatar
+ 1
thx rembering me.i got it.
16th Dec 2017, 1:36 PM
Jayshri Patil
Jayshri Patil - avatar