Class Variables
Class variables (or static variables) are declared with the static keyword within in a class, but outside a method. There can only one version of a class variable within a class and it will be shared with all instances of that class. If changes are made to a class variable, all other instances will also change.
You must be logged in to post a comment.