Board index » delphi » Sticking to class (ancestor) level
Dominique Willems
![]() Delphi Developer |
Fri, 07 Mar 2003 03:00:00 GMT
Sticking to class (ancestor) level
I am sure there are thousands of better alternatives to this approach, but I was wondering whether
there is an elegant way to make a class method call another class method within the same ancestor level, instead of going for the youngest offspring. Example: TParentClass = class TChildClass = class(TParentClass) Code: procedure TParentClass.DoSomething; procedure TChildClass.DoSomething; How can I easily achieve that when the inherited part in TChildClass.DoSomething is executed, the I know I can resolve this by, for instance, putting some of the code in the private part, or by Many thanks. Cheers, |