Computer Science, asked by poonam954019, 5 months ago

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 xNiGhTmRx
0

\huge\mathfrak\blue{Answer:-}.

Option 3 will be the answer.

Similar questions