A state of object is defined by the difference of properties of an object at different intervals.Lets say, a car is moving, its accelerate property will be true if its not moving it will be false. So these are two states.
class Car{
bool accelerate;
}
Lets have an example of Student class and create some instances so we can understand how instances and classes work and help us.