class questions Programming Software Development by lllllIllIlllI HI I was having a look into classes and i noticed i saw a lot of things like [code] class fruitcake(object): pass [/code] my question is what is the point of the "object" being in the class arguments as it is a Built In Function and i couldn't work out what putting it there did Re: class questions Programming Software Development by tondeuse34 Well basically you have a class called fruitcake, and (object) is the varible you defined. So object may … Re: class questions Programming Software Development by bvdet Inheritance! Your new class object [I]fruitcake[/I] will inherit the attributes of [I]object[/I]. See this snippet: [url]http://www.daniweb.com/code/snippet354.html[/url] Re: class questions Programming Software Development by bumsfeld … noticed i saw a lot of things like [code] class fruitcake(object): pass [/code] my question is what is the point… Re: Its Pegball time!!! Community Center Geeks' Lounge by MidiMagic Fruitcake hockey is more fun. Re: The cure for baldness Community Center Geeks' Lounge by Ezzaral [quote=The Dude;446995]Why is everyone making a joke about this?? Sometimes using NATURAL ELEMENTS produces MUCH BETTER RESULTS than anything man made!![/quote] Hrmm, perhaps because the poster is a fruitcake? All three posts by this individual seem to indicated that perhaps he has soaked his own head in salt water for an extended period. Re: frontal labotamy or bottle in front of me? Community Center Geeks' Lounge by MidiMagic … apisdn Why is abbreviation such a long word? Anyone for fruitcake hockey? Re: class questions Programming Software Development by lllllIllIlllI Ah i think i have got it! one last question. When do you need (self) and when is it not needed? Re: class questions Programming Software Development by ich1 Is there any reason not to inherit object in a class I write? Re: class questions Programming Software Development by bvdet ich1, A class that inherits from [I]object[/I] is called a "new-style" class. "Old-style" or "classic" classes are likely to be deprecated some time in the future.