point-dialogue - A sample construction and dialogue with point. | Lecture 8 - slide 7 : 11 Program 2 |
1> (define p (new-instance point 2 3)) 2> (send 'getx p) 2 3> (define q (new-instance point 4 5)) 4> (define p+q (send 'add p q)) 5> (send 'getx p+q) 6 6> (send 'gety p+q) 8