// Test classe Sfera con Array di sfere #include using std::cout; using std::endl; #include "Sfera.h" int main () { Sfera s[4]; Sfera s0(1., 2., 3., 4.); Sfera s1(11., 12., 13., 14.); Sfera s2(21., 22., 23., 24.); Sfera s3(31., 32., 33., 34.); s[0] = s0; s[1] = s1; s[2] = s2; s[3] = s3; for (int i = 0; i < 4; i++) { cout << s[i].getName() << ": "; s[i].print(); cout << " Superficie: " << s[i].getArea() << "; Volume: " << s[i].getVolume() << endl; } return 0; }