PART A: Define a class Point, where one object of class Point represents a point in the (x, y) plane. Define appropriate instance variables and the following instance methods: • __init__() sets the initial values for x and y to (0, 0) unless the caller (e.g. main) passes in arguments. If the caller passes in arguments, then set x and y to the arguments that the caller passes in. • __str__() returns a string representation of the object that calls it. PART B: Write a main program that thoroughly tests the class Point from the previous question. Make sure that your main program creates at least two objects of class Point. Please submit both parts separately, not as the same program. Thank You!
Get Free Quote!
445 Experts Online