|
|
Class Variables | Class variables are less important than instance variables when we do object-oriented programming.
Class variables are similar to global variables if they belong to a public class.
|
|
|
The class BankAccount with a class variable nextAccountNumber, which
can be used as a unique account number when a BankAccount class is instantiated. |
|
Read more about class variables in the text book version of this material. |