def main(): # Use this to test the constructor c1 = Circle(0, 0, -3) # Use these to test the getters print ("c1 center =", c1.getCenter()) print ("c1 radius =", c1.getRadius()) # Use these to test the setters c1.setCenter(1, 2) c1.setRadius(5) print () print ("Modified c1 center =", c1.getCenter()) print ("Modified c1 radius =", c1.getRadius()) # Use this to test the area method print ("c1 area =", c1.area()) # Use this to test the __str__ print () print ("Modified Circle c1:") print (c1)
def main(): # Use this to test the constructor c1 = Circle(0, 0, 3) # Use these to test the getters print("c1 center =", c1.getCenter()) print("c1 radius =", c1.getRadius())