Overriding a Function in a class...

This forum is meant for examples of X# code.

FoxProMatt

Overriding a Function in a class...

Post by FoxProMatt »

Okay, I think I'm starting to get what you are saying, as it related to just raw Functions. So I have learned something with this.

However, back to my original concern, I just wanted know if I have a Class defined of my own type, and then I subclass it, and add an override (in the C# sense of overriding a Method), when I want to called the original base method, I can do it with Super:X(). Right?

But if I were overriding one of RT Functions, you cannot call Super(), you must make a hard call to the function in the XSharp.RT namespace.

Is all this correct?
User avatar
lumberjack
Posts: 727
Joined: Fri Sep 25, 2015 3:11 pm
Location: South Africa

Overriding a Function in a class...

Post by lumberjack »

FoxProMatt_MattSlay wrote: Is all this correct?
Yes sir, I think you have become a SUPER master
______________________
Johan Nel
Boshof, South Africa
Post Reply