Introduction to Classes
A brief encounter
In the real world, we can find many objects around us like cars, buildings, and humans. All these objects have some state and behavior. If we consider a car, then its states are name, speed, and fuel, and the behavior is refuel, drive, and park.