method can be defined outside class it is not necessary for the body of method to be enclosed by class function object created outside class can be assigned to name inside the class the name will acquire the function object as its binding subsequentlythat name can be used in method call as if the method had been defined inside the class in the script shown on the next slidethe important thing to note is that is that the assignment to foo gives an attribute that is function object as shownthis object can then serve as an instance method purdue university