Introduction to Classes

Let's learn the most important pillar of object-oriented programming (OOP): the class.

What’s a class?

A class is a group of related methods and variables with common attributes. A class can be thought of as a blueprint or template where objects are instantiated (created) from it. A single class can instantiate an infinite number of objects.

Get hands-on with 1200+ tech skills courses.