Exemple #1
0
 public static double CubeVolume(Cube c)
 {
     return(Math.Pow(c.sideLength, 3));
 }
Exemple #2
0
 public static double CalculateVolume(Cube cube)
 {
     return cube.SideLength * cube.SideLength * cube.SideLength;
 }