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
Lp2
Lesson1_1_Part2.cs
SquareMatrixPlusFieldMatrix
hello
code exple
string.Format example
Game Dev Challenge #1
golestanali
Examples of JS-Like higher-order functions in C#
breadbank