CS 535 Object-Oriented Programming Spring Semester, 2003 Assignment 3 |
||
---|---|---|
© 2003, All Rights Reserved, SDSU & Roger Whitney San Diego State University -- This page last updated 12-Feb-03 |
Class A Superclass Object Methods name ^’A’ foo1 ^self name |
Class B Superclass A Methods name ^’B’ |
Class C Superclass B Methods name ^’C’ foo2 ^super name foo3 ^self name foo4 ^self foo1 foo5 ^super foo1 |
Class D Superclass C Methods name ^’D’ |
exampleC := C new. exampleD := D new.Explain what happens with each of the following expressions:
exampleC foo1 exampleC foo2 exampleD foo2 exampleC foo3 exampleD foo3 exampleD foo4 exampleD foo52. Use a timesRepeat: loop to sum the even integers from 1 to 10.
a |
n |
b |
o |
c |
p |
d |
q |
e |
r |
f |
s |
g |
t |
h |
u |
i |
v |
j |
w |
k |
x |
l |
y |
m |
z |