Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
test
//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) { A a = new B(); a.MethodA(); } } public class A { public virtual void MethodA() { Console.WriteLine("Hello, world! + Method A from A"); //return; } } public class B : A { public sealed override void MethodA() { Console.WriteLine("Hello, world! + Method A from B"); //return; } } }
run
|
edit
|
history
|
help
0
Overriding fields
itervativeFact
Simplified palindrome test using stack
compra de restaurante
nums y lists
test
Rextester
Operator Overloading + Operator
CommandForce3
8