in action in one overloading method we will use often here is the __init__ constructor methodused to initialize newly created instance objectsand present in almost every realistic class because it allows classes to fill out the attributes in their new instances immediatelythe constructor is useful for almost every kind of class you might code in facteven though instance attributes are not declared in pythonyou can usually find out which attributes an instance will have by inspecting its class' __init__ method of coursethere' nothing wrong with experimenting with interesting language toolsbut they don' always translate to production code with time and experienceyou'll find these programming patterns and guidelines to be natural and nearly automatic the world' simplest python class we've begun studying class statement syntax in detail in this but ' again like to remind you that the basic inheritance model that classes produce is very simple --all it really involves is searching for attributes in trees of linked objects in factwe can create class with nothing in it at all the following statement makes class with no attributes attachedan empty namespace objectclass recpass empty namespace object we need the no-operation pass placeholder statement (discussed in here because we don' have any methods to code after we make the class by running this statement interactivelywe can start attaching attributes to the class by assigning names to it completely outside of the original class statementrec name 'bobrec age just objects with attributes andafter we've created these attributes by assignmentwe can fetch them with the usual syntax when used this waya class is roughly similar to "structin cor "recordin pascal it' basically an object with field names attached to it (as we'll see aheaddoing similar with dictionary keys requires extra characters)print(rec namebob like struct or record notice that this works even though there are no instances of the class yetclasses are objects in their own righteven without instances in factthey are just self-contained namespacesas long as we have reference to classwe can set or change its attributes anytime we wish watch what happens when we do create two instancesthoughx rec( rec(instances inherit class names the world' simplest python class