Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Inheritance Fallback
//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 Console.WriteLine(new Goku().Say()); Console.WriteLine(new Gohan().Say()); } } public abstract class Base { public abstract string Say(); public abstract string GetName(); } public class Goku: Base { public override string Say() { return String.Format("My name is {0}", GetName()); } public override string GetName() { return "Goku"; } } public class Gohan: Goku { public override string GetName() { return "Gohan"; } } }
run
|
edit
|
history
|
help
1
SortedDictionary : Add と foreach
sdfrgthyju8765rb dcd vxs dd
C# Dictionary with Enum Keys And Values
EVEN AND ODD
User Defined Exception (Inherited from built-in Exception class)
sdfsdfs
1
Work Days
Deadlock Example
Chris Kasongo Lazarius Mukengeshayi "Entelect BlackJack 21"