Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Override method/function in C#
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here ProgramParent programParent = new ProgramParent(); programParent.changeValue(); } } public class ProgramParent : ProgramChild { public override void changeValue() { Console.WriteLine("override success"); } } public class ProgramChild { public virtual void changeValue() { Console.WriteLine("override fail"); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
CubexSoft2
Trim Strings
FirstNonRepeatCharOfString
Pet Name Generator
Huy kaka
Капча
Fechas
C# simple fib solution
TestKlasse
Intuit // C# // listing_4.6 (Shooting on the target)
Please log in to post a comment.