Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
interface
//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 { abstract class ShapesClass { abstract public int Area(); } class Square : ShapesClass { int side = 0; public Square(int n) { side = n; } // Area method is required to avoid // a compile-time error. public override int Area() { return side * side; } interface I { void M(); } abstract class C : I { public abstract void M(); } } public class Program { public static void Main(string[] args) { Square sq = new Square(12); Console.WriteLine("Area of the square = {0}", sq.Area()); } } }
run
|
edit
|
history
|
help
0
FuncDelegate
seoituerwoi
Plt-D v.0.9
Find smallest and largest in unsorted array
anyonymous type pass to method in c#
Overriding fields
Riemann Sums
Symantic check for object type variables
pascal
sfe