what is wrong with the following code:
class Ball():
def___init___(self):
self.x = 0
self.y=0
Ball.x=50
Ball.y = 100
1.lines 3 and 5 should be used ro set x and y to 50 and 100
2. ball.on lines 6 and 7 should be lower case
3. lines 3 and 4 should not have self in front
4. ball.does not refer to an instance of the class
Answers
Answered by
0
.
Option 3 will be the answer.
Similar questions
English,
2 months ago
India Languages,
2 months ago
Social Sciences,
5 months ago
Math,
10 months ago
English,
10 months ago