> On Mon, 5 Jun 2006, David Nicolás Abdala wrote:
>
>> A "class method" is a method you can call for the class (you don't need
>> an
>> object to call it) as:
>>
>> cant:=TMyClass.getInstancesCount; //wich returns the count of objects
>> created of that class
>>
>> A class's method is a method that is part of a class (any method not
>> defined with the class keyword) as:
>>
>> TheObject := TMyClass.Create();
>> show := TheObject.ClassName();//wich should return 'TMyClass'
>>
>> you can't do:
>>
>> TMyClass.ClassName();
>
> Yes you can. ClassName IS a class method.
>
> Michael.
Sorry, bad example, I forgot that the ClassName method already exists (I
just make a literal translation, that happend to give an existing method
name).
Replace it for any other name, "NombreClase" for example.
David.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives