Put in order · Python course · Module 3: Object-Oriented Programming
Class Methods - Definition Order
Arrange the typical elements of a class definition:
Items to put in order
- def speak(self):
- def __init__(self, name):
- class Animal:
- kingdom = 'Animalia' (class attribute)
You can check the correct answer by solving this task in the CodeWorlds game.