Hi!
Am Sonntag, den 10.08.2008, 10:01 +0200 schrieb Vincent Snijders:
> Johann Glaser schreef:
> > Hi!
> >
> > How can I access an inherited inherited method which was overloaded?
>
> Try the following, mark the constructors as overloaded:
> >
> > == Example: ==
> >
> > {$mode objfpc}{
Johann Glaser schreef:
Hi!
How can I access an inherited inherited method which was overloaded?
Try the following, mark the constructors as overloaded:
== Example: ==
{$mode objfpc}{$H+}
Program TestInherited;
Uses Classes, SysUtils;
Type
TFirst = class
Constructor Create(A,
Johann Glaser wrote:
Hi!
Am Montag, den 04.08.2008, 08:23 -0300 schrieb Joao Morais:
Johann Glaser wrote:
How can I access an inherited inherited method which was overloaded?
You can't, one of them will need to have a different name.
Thanks.
Why is a method hidden, just because it has the
Hi!
Am Montag, den 04.08.2008, 08:23 -0300 schrieb Joao Morais:
> Johann Glaser wrote:
> > How can I access an inherited inherited method which was overloaded?
>
> You can't, one of them will need to have a different name.
Thanks.
Why is a method hidden, just because it has the same name? Isn't
try (but i not like it )
begin
TFirst(Self).Create(A, B, 0);
end;
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Johann Glaser wrote:
How can I access an inherited inherited method which was overloaded?
You can't, one of them will need to have a different name.
Joao Morais
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/m
Johann Glaser writes:
> Hi!
>
> How can I access an inherited inherited method which was overloaded?
>
AFAIK TThird inherits Create method not from TFirst, but from TSecond,
i.e. TThird.Create calls TSecond.Create, not TFirst.Create.
___
fpc-pascal mai
Hi!
How can I access an inherited inherited method which was overloaded?
== Example: ==
{$mode objfpc}{$H+}
Program TestInherited;
Uses Classes, SysUtils;
Type
TFirst = class
Constructor Create(A,B,C:Integer);
End;
TSecond = class(TFirst)
Constructor Create(A,B:Integer);