Newbie: Classes

Jason Kratz jkratz1 at hotmail.com
Sun Oct 26 22:12:55 EST 2003


KefX wrote:
> All methods have 'self' as the first parameter. The actual name is unimportant,
> but out of convention, practically everybody who's anybody uses 'self'.
> 
> What it is is an instance of a class. In C++ and Java, the same concept is
> expressed with the 'this' keyword; Python just makes it explicit in having it
> passed into the function.
> 

If I remember correctly Java also passes 'this' into funtions but its 
done implicitly.  Its there but you just don't see it.

Jason
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Jason Kratz
jkratz1 at hotmail.com
http://jkratz.dyndns.org/~jason/blog
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-





More information about the Python-list mailing list