示例#1
0
 public Cylinder(Cylinder cy)
 {
     x = cy.x;
     y = cy.y;
     Radius = cy.Radius;
     height = cy.height;
 }
示例#2
0
 public Cylinder(Cylinder a)
 {
     x = a.x;
     y = a.y;
     Radius = a.Radius;
     Height = a.Height;
 }
示例#3
0
 public Cylinder(Cylinder a)
 {
     x = a.x;
     y = a.y;
     radius = a.radius;
     height = a.height;
 }
示例#4
0
 public Cylinder(Cylinder y)
 {
     Height = y.Height;
     base.X = y.X;
     base.Y = y.Y;
     base.Radius = y.Radius;
 }
示例#5
0
 public Cylinder(Cylinder b)
 {
     x = b.x;
     y = b.y;
     radius = b.radius;
        height = b.height;
 }
示例#6
0
        static void Main(string[] args)
        {
            // Test Program for Lab401
            Circle c1 = new Circle(), c2 = new Circle(1.5, 5.0, 2), c3 = new Circle(c2);
            Console.WriteLine(c1 + "\n" + c2 + "\n" + c3);

            Cylinder cl1 = new Cylinder(), cl2 = new Cylinder(c3), cl3 = new Cylinder(1, 1, 3, 4);
            Cylinder cl4 = new Cylinder(cl3);
            Console.WriteLine(cl1 + "\n" + cl2 + "\n" + cl3 + "\n" + cl4);
        }
示例#7
0
 public Cylinder(Cylinder cl)
     : base(cl.x, cl.y, cl.radius)
 {
     height = cl.height;
 }
示例#8
0
 public Cylinder(Cylinder cy)
     : base(cy.X, cy.Y, cy.Radius)
 {
     _height = cy.Height;
 }
示例#9
0
 public Cylinder(Cylinder Cy)
     : base(Cy.x, Cy.y, Cy.getRadius())
 {
     this.Height = Cy.Height;
 }
示例#10
0
 public Cylinder(Cylinder cl) : base(cl.x, cl.y, cl.radius)
 {
     height = cl.height;
 }
示例#11
0
 public Cylinder(Cylinder cy)
 {
     C = new Point(cy.C);
     R = cy.R;
     H = cy.H;
 }
示例#12
0
 public Cylinder(Cylinder cy)
 {
     base.setCircle(cy.A, cy.B, cy.Radius);
     this.Hight = 1.0;
 }
示例#13
0
 public Cylinder(Cylinder cy)
 {
     C = new Point(cy.C);
     R = cy.R;
     H = cy.H;
 }
示例#14
0
 public Cylinder(Cylinder a) : base(a.X, a.Y, a.radius)
 {
     height = a.height;
 }
示例#15
0
 public Cylinder(Cylinder cy)
     : base(cy.x, cy.y, cy.radius)
 {
     Height = cy.Height;
 }
示例#16
0
 public Cylinder(Cylinder a)
     : base(a.x,a.y,a.Radius)
 {
     this.height = a.height;
 }
示例#17
0
 public Cylinder(Cylinder c)
     : base(c.x,c.y,c.radius)
 {
     heigh = c.heigh;
 }
示例#18
0
 public Cylinder(Cylinder a)
     : base(a.X, a.Y, a.radius)
 {
     height = a.height;
 }
示例#19
0
 public Cylinder(Cylinder c)
     : base(c.X,c.Y,c.Radius)
 {
     height = c.Height;
 }
示例#20
0
 public Cylinder(Cylinder b)
     : base(b.X, b.Y, b.Radius)
 {
     height = b.Height;
 }