Automatic Registration of Subclasses | Challenge

# Introduction In this challenge, we will implement a class called `Base` that will automatically record any subclasses that inherit from it. The purpose of this implementation is to enable the retrieval of all subclass names by iterating over `Base`. The goal is to demonstrate the functionality of `Base` by showing that it correctly registers and outputs the names of the subclasses. We will accomplish this by implementing the `__iter__` method in the `Base` class and ensuring that it supports iteration.

|
60 : 00

Click the virtual machine below to start practicing