[fpc-devel] class abstract, class sealed implementation. please review.

Paul Ishenin webpirat at mail.ru
Mon Oct 19 15:35:53 CEST 2009


Vinzent Höfler wrote:
> And then inside the implementation:
>
> TNokia3720Phone.SomeMethod;
> begin
>    case self.Edition of
>       n3720peStandard:
>          ImplementedThatWay;
>       n3720peDeluxe:
>          ImplementedThisWay;
>    end;
> end;
>   
When you are phone manufacturer you know you model line very well. So 
you can define final classes and intermediate very well. If 
implemenetation is different then you are free to use

TNokia3720PhoneStandard = class sealed(TNokia3720Phone)
TNokia3720PhoneDeluxe = class sealed(TNokia3720Phone)

and ofcource in this case TNokia3720Phone becomes not sealed.

I don't want to continue this discussion. Moreover I don't ask anybody 
to use it if they find this not useful. Those who need it will use it. 
What's the problem after all?

Best regards,
Paul Ishenin.



More information about the fpc-devel mailing list