when should a function be static code example
Example: do i have to use static methods in java main
Use a static method
when you want to be able to access the method
without an instance of the class
Use a static method
when you want to be able to access the method
without an instance of the class