What's up with the static
keyword?
main()
method can't be staticWoot woot! Static variables and methods don't need instances and, therefore, can't use instance variables. main()
is a great example of a static method with parameters.
Close! Static variables and methods don't need instances and, therefore, can't use instance variables. main()
is a great example of a static method with parameters.