using System;
public class Program
{
class Rectangle{
public double width{get;set;}
public double height{get;set;}
//constructor
public Rectangle()
width=3;
height=2;
}
public Rectangle(double w, double h)
width = w;
height = h;
public double area()
return width * height;
public static void Main()
Rectangle a=new Rectangle(3,5);
Console .WriteLine(a.area());