S&W page 165, program 1.6.1
Modify the bouncing ball code ( Bouncing Ball Code ) to turn it into a BouncingBall class. In a Driver main create N bouncing balls starting at different locations an watch the many balls bouncing around. For example, in your Driver main function you should a few code lines like:
BouncingBall bb ;
for (int i = 0 ; i < N ; i++)
{
bb = new BouncingBall(0.5,0.5,0.02,0.01, 0.02) ;
}
Where the 5 arguments to the BouncingBall constructor are {x, y, x-velocty, y-velocity, radius}, where radius is the radius of the new ball.