[fpc-pascal] class property accessor static
    Mattias Gaertner 
    nc-gaertnma at netcologne.de
       
    Tue Feb  7 14:35:39 CET 2017
    
    
  
On Tue, 7 Feb 2017 13:31:10 +0000
Graeme Geldenhuys <mailinglists at geldenhuys.co.uk> wrote:
>[...]
> Couldn't that simply be....
> 
>   Writeln(TFoo.F);
Yes.
> I never understood Object Pascal's class methods/properties either?
> Unlike Java, not everything needs to be in a class. We are allowed to
> have procedures or functions, and global ones at that. So in Object
> Pascal we could simply have a unit called FooStuff where everything
> related to Foo is defined, then have a global function F() and then use
> it as follows...
Class methods can be overridden.
Mattias
    
    
More information about the fpc-pascal
mailing list