Method implementations for classes ar no different than for objects: the implementation is specified using the ClassName.MethodName identifier:
Type TMyClass = class Procedure DoIt; end; procedure TMyClass.DoIt; begin // Do something nice end;
Note: Because the compiler considers a type alias to be the same type as the aliased type, type aliases can currently be used when writing the implementation of a method:
Interface Type TSomeReallyAnnoyingIncrediblyLongClassName = Class Procedure DoSomething; end; implementation Type T1 = TSomeReallyAnnoyingUltraLongClassName; procedure T1.DoSomething; begin end;