3 # Create the Circle object
6 print " Creating circle (radium: %d) :" % r
9 # Set the location of the object
13 print " Here is its current position:"
14 print " Circle = (%f, %f)" % (c.x,c.y)
16 # ----- Call some methods -----
18 print "\n Here are some properties of the Circle:"
19 print " area = ", c.area()
20 print " perimeter = ", c.perimeter()
23 print " Moving with (%d, %d)..." % (dx, dy)
28 print "==================================="
30 # test move function */
32 print " Creating circle (radium: %d) :" % r
34 # Set the location of the object
38 print " Here is its current position:"
39 print " Circle = (%f, %f)" % (c.x,c.y)
41 # ----- Call some methods -----
43 print "\n Here are some properties of the Circle:"
44 print " area = ", c.area()
45 print " perimeter = ", c.perimeter()
47 # no error for Circle's pre-assertion
50 print " Moving with (%d, %d)..." % (dx, dy)
53 # error with Shape's pre-assertion
56 print " Moving with (%d, %d)..." % (dx, dy)