Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Lambda Expression
Список Лекарств
eg
Crystals Plep
CommandForce1
R
iLoveLizzy
IComparable extensions: Between
Upgrade
Hex<->Bas64
stackse - search stackoverflow differently
Please log in to post a comment.