the variable but student number can change the class variable because of the class variable number and class the number inside the method is the same constructor in python __init__ class functions that begin with double underscore (__are called special functions as they have special meaning of one particular interest is the __init__(function this special function gets called whenever new object of that class is instantiated this type of function is also called constructors in object-oriented programming (oopwe normally use it to initialize all the variables the init method (short for "initialization"is special method that gets invoked when an object is created its full name is __ init __ (two underscore charactersfollowed by initand then two more underscoresexampleclass dogdef __init__(self)print(" am inside the constructor method "instantiate the parrot class obj dog(if we added the above __init__ method to the dog classand create an object of the class dog then the program would output the following outputi am inside the constructor method this is because the constructor method is automatically initialized you should use this method to carry out any initializing you would like to do with your class objects instead of using the constructor method abovelet' create one that uses named variable that we can use to assign names to objects we'll pass the name as parameter and set self name equal to nameexampleclass sharkdef __init__(selfname)self name name def swim(self)print(self name is plying cricket "page