Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Public access specifier
//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 Rectangle { public double length,width; public double GetArea() { return length * width; } public void Display() { Console.WriteLine("Length : {0}",length); Console.WriteLine("Width : {0}",width); Console.WriteLine("Area : {0}",GetArea()); } } public class Program { public static void Main(string[] args) { Rectangle p = new Rectangle(); p.length = 12.3; p.width = 15.4; p.Display(); //Your code goes here // Console.WriteLine("Hello, world!"); } } }
run
|
edit
|
history
|
help
0
Complex Variable Implementation in C#
Find smallest and largest in unsorted array
jkb
sample
6.4 Parallelism: threads and events
Anagrams String
IEquatable revised book
asxdf
dsadsadsa
Using System.Reflection to find Property Name and Value of any Generic Class