I am completing a basics programming course and I am having trouble understanding the difference between class variable and instance variables (static and non-static). I need to determine the difference between the two in the code
Class StudentDetails
{
Int rollNumber;
String studentName;
}
StudentDetails firststudent= StudentDetails (19236, ”Thomas”);
I believe the rollNumber, studentName, 19236 and "Thomas" are all instance variables and the firststudent is a class variable.
Any assistance on this would be appreciated as the course material is not very helpful.