using System;
public class Shape
{
public int length{set; get;}
public int width{set; get;}
}
public class Square : Shape
public int Area()
return length * width;
public class Cube : Square
public int height{set; get;}
public int volume()
return Area() * height;
/*
int c = Area() * height;
return c;
*/
public class Test
public static void Main()
Cube a = new Cube();
a.length = 5;
a.width = 6;
a.height = 2;
Console.WriteLine(a.volume());