【文件属性】:
文件名称:圆柱圆锥JAVA程序
文件大小:2KB
文件格式:JAVA
更新时间:2013-01-24 17:27:56
圆柱 圆锥
关于求解圆柱圆锥的JAVA程序。
public class yuanzhuyuanzhui
{
protected YuanZhu r;
protected YuanZhui rr;
protected class YuanZhu
{
public double height;
public double radius;
public YuanZhu(double height,double radius)
{
this.height = height;
this.radius = radius;
}
public YuanZhu(YuanZhu r)
{
this(r.height,r.radius);