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
15
DotnetQ6
ADSA - Tuto 1 - Exo4 - b - Proposition d'algo en O(n)
float to short cast overflow
1.2 Basics: object orientation
stars
first
ttttt
LINQ - Inner Join
Math 10.81 added quad seq