Run Code
|
API
|
Code Wall
|
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
congtodien
Main3-3
asxasxscdf
String to Decimal CSHARP
lala
Inheritance Gone Wrong Template
derfgtredwcdf
reverse words in astring
internal access specifier
FromBase64String