Python example: inheritance
Python inheritance example
Defines a base Animal class and a Dog subclass that calls super().__init__() to reuse parent initialization while setting the species. It teaches constructor inheritance, subclass specialization, and inspecting instance attributes through __dict__.