[.net] C# inheritance
How can I override a function from the inherited class without making it abstract? I want a function definition in both my base and derived classes.
Mark the base class's method "virtual". You can then mark the derived class's implementation as "override" and still call the base class implementation using "base.MethodName()".
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement