the example class contains single defined attributesayhello(this method doesn' accept any special arguments and doesn' return any values it simply prints message as output howeverthe method works just fine for demonstration purposes type myinstance myclassand press enter python creates an instance of myclass named myinstance type myinstance sayhelloand press enter you see the message shown in figure - figure - the instance message is called as part of an object and outputs this simple message close the python shell window working with constructors constructor is special kind of method that python calls when it instantiates an object using the definitions found in your class python relies on the constructor to perform tasks such as initializing (assigning values toany instance variables that the object will need when it starts constructors can also verify that there are enough resources for the object and perform any other start-up task you can think of the name of constructor is always the same__init__(the constructor can accept arguments when necessary to create the object when you create class without constructorpython automatically creates default constructor for you that doesn' do anything every class must have constructoreven if it simply relies on the default constructor the following steps demonstrate how to create constructor