class Program
{
static void Main(string[] args)
{
Cshape c1 = new Csquare();
c1.Area(11,22,33);
Cshape c2 = new Ccircle();
c2.Area(11, 22, 33);
}
}
public abstract class Cshape
{
public abstract double Area(double temp1,double temp2,double temp3);
}
public class Ccircle : Cshape
{
public override double Area(double temp1, double temp2, double temp3)
{
return 1;
}
}
public class Csquare : Cshape
{
public override double Area(double temp1, double temp2, double temp3)
{
return 1;
}
}