[fpc-pascal]Question on OOP programming...

Ingmar Tulva ingmar at zbi.ee
Fri Nov 10 20:44:56 CET 2000

On Fri, 10 Nov 2000, Rainer Hantsch wrote:

> It is simple to overload a function from the client view by
> defining it "virtual". From outside access this is ok, but I must
> access this client version of KeyGen() from the parent!!!
> Haw can I do that or something similar? I know that I can fix that with
> workarounds, but this is not my target. I want to keep the internal list
> of records "private" and to offer only methods for accessing it.

1. Make the internal list "protected" instead of "private" (you use
classes, do you?).
2. Pass the record from whitch you are extracting the key to KeyGen() as a
3. I got something wrong (c:

Ingmar Tulva,
ingmar at zbi.ee

More information about the fpc-pascal mailing list