Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Inheritance
//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 { class PRectangle { protected int length; protected int width; public void Getlen(int i) { length = i; } public void Getwidth(int j) { width = j; } } class Rectangle : PRectangle { public int GetArea() { return(length * width); } } public class Program { public static void Main(string[] args) { Rectangle rect = new Rectangle(); rect.Getlen(5); rect.Getwidth(50); //Your code goes here Console.WriteLine("Area : {0}",rect.GetArea()); } } }
run
|
edit
|
history
|
help
0
actions and tasks
prime numbers 1-100
multiplicação
Inheritiance
Lambdas
starpattern
Get days from two dates
char.IsNumber
Convert String to integer in c#
12