yep, i know i can instantiate classes. I guess i got slightly confused. I had slightly more complex code, and just got a bit lost. Then i broke it down into the simpler code i posted in this topic, then we started talking about it, and all the puzzle pieces came together.
I should do that more often, simplify the code to better grasp the concept.
I guess i am just a slow learner, with sometimes bright moments where puzzle pieces come together.
Classes contain the code to create instances.
Instances fall back to the class when attributes aren’t found.
Classes fall back to parents when their attributes aren’t found.
And an object is just a bundle of information, where one piece of information is its type so that this fallback behaviour can happen.
All classes inherit object, that’s where the fallback stops