the syntax for defining method method defined for class must have special syntax that reserves the first parameter for the object on which the method is invoked this parameter is typically named self for instance methodsbut could be any legal python identifier in the script shown on the next slidewhen we invoke the constructor using the syntax xobj the parameter self in the call to init (is set implicitly to the instance under construction and the parameter nn to the value method may call any other method of classbut such call must always use class-qualified syntaxas shown by the definition of bar(on the next slide purdue university