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
Truncate String by Byte
sulu
Strings: Padding Integers and Handling Decimal Float Numbers
Display the pattern like diamond by using c# for loop
1
Command line arguments parser (Lightweight, robust, flexible)
c++
Dependency Injection
Stack as a queue
hola1