Class Fields « Class Definition « Java Tutorial






5.4.Class Fields
5.4.1.Scope class demonstrates field and local variable scopes
5.4.2.Dynamically changing the behavior of an object via composition (the 'State' design pattern)
5.4.3.Scope for Class and Local Variables
5.4.4.A Class that Demonstrates Shadowing