Inherited methods

BlitzMax Forums/BlitzMax Programming/Inherited methods

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

when you inherit a method in a type, you can then use that in the child type, but if you override the method it will no longer run the code in the previous method.

Is there any way to override the method, run the inheritied method's code AND your new code?

i.e. in Delphi you do
procedure DoSomething(X:Integer, Y:Integer); override;
begin
   inherited; //run inherited method's code
   //do something else here
end;