Python

35 lessons

Achievements
Combined Shape@2x

The Certificate

avatar

Declaring a class

You can declare a class with a class keyword followed by the name of the class.

Here, we use the class keyword to define an empty class named SomeClass. From class, we construct instances. An instance is a specific object created from a particular class.