Introduction to Classes

Get familiar with the basic building blocks of Object-Oriented Programming: 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.

Get hands-on with 1000+ tech skills courses.