Classes

This lesson introduces object-oriented programming using classes, attributes, and methods.

We'll cover the following

Classes

In object-oriented programming (OOP), a class is a structure that allows you to group together a set of properties (called attributes) and functions (called methods) to manipulate those properties. Take the following class that defines a person with the name and age properties and the greet() method.

Get hands-on with 1000+ tech skills courses.