mjc65

static2

May 5th, 2020
1,082
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. class Programn
  2. {
  3.     static void Main(string[] arg)
  4.     {
  5.         Rectangle alpha = new Rectangle();
  6.         alpha.Length = 10.0;
  7.         alpha.Width = 30.0;
  8.         Console.WriteLine("The shape is {0}", Rectangle.ShapeName);
  9.         Console.WriteLine("The areas of the rectangle is {0}", alpha.GetArea());
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment