0

im having trouble creating a ball at step 4 as there isn't a ball.png. What should be filled in there?

Share a link to this question (includes your user id)
| edit | | close | delete |
0

I think you are referring to this part of the assignment:

assignment text

As it says, you should do this "just like the basket and the launcher". So how did you do that? You created a method, and in that, you added a new object (of type ControlElement). Now the type is Ball. To create a new Ball, you do:

... = new Ball( ... );

Then you must figure out the parameters the constructor of the Ball needs. That is also explained in the assignment text:

assignment text

Share a link to this answer (includes your user id)
| edit | delete |

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.