// Example 61 #include #include using namespace std; // Class declaration... class sphere { double x_center, y_center, z_center, radius; // These are data members. }; int main() { sphere ball; // ball is declared to be type sphere. // ball is an object, and it can store its center and radius. sphere BALL[10]; // BALL is an array of spheres // Each element can store its radius and center. cout << sizeof( ball ) << endl; cout << sizeof( BALL ) << endl; cout << "\n\n"; system( "PAUSE" ); return( EXIT_SUCCESS ); }