Previous
Classes and Objects
1 / 5
Next
Attributes
Hint
Define a class Point
with class attributes x = 0
and y = 0
as coordinates on the $xy$-plane.
Declare an object p
of class Point
and set the coordinates p.x = 5
and p.y = 3
.
Help
Solve
Reset
Test results
Test result #
Expected output
Your output