[fpc-pascal]OO in Pascal
John Coppens
jcoppens at usa.net
Sun Sep 29 03:32:14 CEST 2002
On Sun, 29 Sep 2002 10:45:35 +1000
James Mills <prologic at useoz.com> wrote:
> In java you can do this...
>
> public class A {
> public void start {
> //...
> }
> }
>
> public class B extends A {
> public void start {
> Super.start();
> //...
> }
> }
>
> Can this be done in FPC ?
Do you mean heritage? Like this:
type
A = class
procedure start;
end;
B = class (A)
procedure start;
end;
in the implementation you can
procedure B.start;
begin
inherited A;
end;
John
>
> cheers
> James
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list