+ 7

What happens if we don't use static keyword before methods

17th Jan 2017, 12:24 PM
N.Neeharika Reddy
N.Neeharika Reddy - avatar
2 Respuestas
+ 1
Static keyword macke it possible to call the methods direct without creating instance of the main class
17th Jan 2017, 6:43 PM
Ahmed Shehata
Ahmed Shehata - avatar
- 1
A class is nothing by itself. It is just a plan. You should first create an object using that class. Static keyword mack it possible use of object methods without creating one.
17th Jan 2017, 12:39 PM
Ahmad
Ahmad - avatar