//source code for using abstact class
using System;
namespace OOPSProj
{
//code for inheritance
public class Rectangle : Figure
{
//code constuctor
public Rectangle(double width, double height)
{
base.width = width;
base.height = height;
}
public override double GetArea()
{
return width * height;
}
static void Main()
{
Rectangle r = new Rectangle(190, 45);
Console.WriteLine(r.GetArea());
Console.ReadLine();
}
}
}