Chapter Review
This chapter showed you how to create your own Java methods. You were shown how to create both static and nonstatic methods. Additionally, the difference between static and non static variables was explored. Most of the functions and methods you create will be nonstatic.
Variables can be of different scopes. This chapter showed you three different scopes that variables can be local variables, instance variables, and static instance variables. Local variables can only be accessed from within the method or function they were created in. Instance variables can be accessed from anywhere inside of the class. Static instance variables can be accessed from anywhere in the class, but they do not have a unique value for each instance. When you create instance variables, they will be nonstatic.




