I'm very new to Java and want to beunderstand the difference between class variables and instance variables.
For example:
class Bicycle {
static int cadence = 0;
int speed = 0;
int gear = 1;
}
How are instance variables and class variables are different from each other? Which variables here are class variables, and which are instance variables? How does this affect scope?