method defined outside class (contd def bar(self,arg ,arg arg = )self arg arg arg class class xfoo bar def __init__(selfnn)self nn def getn(self)return self #--end of class definition ---xobj ( printxobj getn(xobj foo printxobj getn(purdue university