Esempio n. 1
0
        //- getArea(): calculate outter surface area of the cylinder(should NOT have redundant code with the superclass)

        public override double getArea()
        {
            return(Hight * 2 * (Surface.getArea() / Surface.Radius) + 2 * Surface.getArea());
        }
Esempio n. 2
0
 new public double getArea()
 {
     return(c.getArea() * 2 + (_height * c.radius * 2 * Math.PI));
 }
Esempio n. 3
0
 public double getArea()
 {
     return((2 * 3.14159265358979 * _circle.Radius * _height) + (2 * _circle.getArea()));
 }
Esempio n. 4
0
 public override double getArea()
 {
     return((2 * Math.PI * _circle.Radius * Height) + (2 * _circle.getArea()));
 }