defining the __init__ method (constructorthere is special method init which is used to initialize the instance variables or data members of the class this is also called as "constructorit is defined as followsdef init (selfns)constructorwhere and are parameters self name= #initialization of instance variablesname and sal self sal= the init method has one argument "selfand every method has at least one argument that "selfthis ,,selfargument is reference to the current object on which the method is being called this init method is called with the help of class constructor adding the member functions or methods to class we can add any number of functions or methods to the class as we like the function that is written inside the class is called "member function or methodwriting the method is quite similar to the ordinary function with just one difference the methods must have one argument named as "selfthis is the first argument that added to the beginning of parameters list the method or function definition is written inside the class as shown in the syntax#defining class class employeeclass header #declaring the class variable count= #defining the constructor def init (self, , )self name= self sal= employee count+= #adding the method to the class def dispemp(self)print("the employee name is:",self name,"salary is:",self salself variable the self argument refers to the current object python takes care of passing the current object as argument to the method while calling page