Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Random Integers
pointer
deqnq the random sentence generator
task 1
sdfghjkilujyht
Working with Strings
TestWall
azs dasx
Display the pattern like diamond by using c# for loop
to find the first index of a substring in a given string
Please log in to post a comment.