Re: OOP Clarification
Re: OOP Clarification
- Subject: Re: OOP Clarification
- From: Adam Eijdenberg <email@hidden>
- Date: Tue, 1 Jan 2002 16:34:09 +1100
I've read about the difference between a class method and a instance
method
before, but the difference has somehow become lost in my cobwebs. All I
can
remember is the difference is subtle, but an important concept.
A class method applies to the the entire class, rather than an
individual instance. That is, a class method has no reference to 'self'
(or 'this' depending on the language used). Basically it's just a method
that logically should be with the class definition, but isn't a true
"method" as such that it applies to an object, it's more like a
"function" in procedural programming.
Hope that helps.
Kind regards,
Adam Eijdenberg