Suppose we have two objects, A and B:
A | B |
---|---|
x = 3 | x = (z - y) |
y = 4 | y = 4 |
z = (x + y) | z = 7 |
Both of these "hold" the numbers 3, 4, and 7, but in different ways. In Python, we have to treat these objects differently:
print 3 | print 7 |
---|---|
A.x
| A.z()
|
B.x()
| B.z
|
In Self, they look exactly the same:
print 3 | print 7 |
---|---|
A x
| A z
|
B x
| B z
|