Classes and Objects
3 / 4
Printing objects
Modify the code so that we can print objects of class Point
.
If we do p = Point(3,4)
then print(p)
should output Point at (3,4)
.
Modify the code so that we can print objects of class Point
.
If we do p = Point(3,4)
then print(p)
should output Point at (3,4)
.