i am trying to solve this problem i dont know which object i need to refer to in my main method
using System;
namespace ShapesDemo
{
abstract class GeometricFigure
{
static void Main(string[] args)
{
}
public int height;
public int width;
public readonly double area;
public int height
{
get { return height; }
set { height = value; }
}
public int Width
{
get { return width; }
set { width = value; }
}
public abstract double ComputeArea();
}
class Rectangle : GeometricFigure
{
public override double ComputeArea()
{
return width * height;
}
}
class Square : Rectangle
{
public void equal(int height, int width)
{
if (height.Equals(width))
Console.WriteLine("{0} for {1} has the same messers " +
height, width);
}
}
class Triangle : GeometricFigure
{
public override double ComputeArea()
{
return width * (height / 2);
}
}
}