[fpc-pascal] Empty record inside another record ?

Marco van de Voort marcov at stack.nl
Tue Feb 19 11:26:21 CET 2008


> For records, I would use an extension field like:
> 
> IP.Payload
> 
> and
> 
> UDP.Payload
> 
> I would hardly call that obfuscation :)

But the whole idea of inheritance is that child fields and methods are also
available in UDP. 

Have a look at a basis OOP tutorial. 



More information about the fpc-pascal mailing list