Apr-18-2019, 05:14 PM
Is this homework? Are you restricted in what you can use?
I would use a class to handle the ball. Then created numerous objects from that class based on your factors. Here is an example. And here is an example of using that class to create a ball and add it to the list of balls.
I would use a class to handle the ball. Then created numerous objects from that class based on your factors. Here is an example. And here is an example of using that class to create a ball and add it to the list of balls.
Recommended Tutorials: