+ 7
What happens if we don't use static keyword before methods
2 odpowiedzi
+ 1
Static keyword macke it possible to call the methods direct without creating instance of the main class
- 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.