mjc65

derived3

Mar 28th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1. static void Main(string[] args)  
  2.     {    
  3.         Rectangle rect = new Rectangle(10, 20);    
  4.         Console.WriteLine(    
  5.             “Width = {0}, Length = {1}, Area = {2}”,    
  6.             rect.Width, rect.Length, rect.GetArea());
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment