Use of __init__ in Classes -- Excercise 44 & in general


Still working through this terrific book! Very helpful stuff.

Here’s a question I hope doesn’t put a Dunce Cap on my head. I’m struggling with it and have Googled various discussions on the web but am still a bit confused.

I’m confused why some Classes are coded without an “init” method and why others have an “init” method. (The underscores aren’t showing up in the post here, but I am typing them)

The code in Exercise 44 is one example. Parent and Child Classes are defined and dad and son objects are created but init is not used anywhere.

When I first read about Classes and Objects, I thought init was essential to creating objects from classes, but Exercise 44 code, and other code used in the book, works without the init.

Thanks in advance for any takers on my basic question.

-Mark (Destined to be a Python Expert, but right now, candidly, barely a beginner).