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
Fórum Mimicking Array Names Being Defined at Runtime
Interface and it's implementation
asdcsadxasxd
Sort List of Ages Using A Stack
Hello World!
Chris Kasongo Lazarius Mukengeshayi "Entelect BlackJack 21"
Intuit // C# // listing_4.4 (StreamReader // input.txt)
hay
radix sort
Sort A List of Ages of Students (Solution: Stack / O(N^3) Complexity)