Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Abstract Example
//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 abstract class Shape { public abstract void draw(); } public class Rectangle : Shape { public override void draw() { Console.WriteLine("Draw Rectangle"); } } public class Triangle : Shape { public override void draw() { Console.WriteLine("Draw Triangle"); } } public class Program { public static void Main(string[] args) { Shape s1 = new Rectangle(); s1.draw(); s1 = new Triangle(); s1.draw(); } } }
run
|
edit
|
history
|
help
0
JagArray
4x4 ver 3
Dan's Dice
koko
Fibonacci Series
bro
Hssbddbsv
try base generic test
Group by Example
ingresar datos por teclado