[Seaside] Subclasses
Sebastian Sastre
ssastre at seaswork.com
Sat Jul 4 02:24:59 UTC 2009
is ok RS. The ivar in the parert will make all the children to have that ivar
(each instance its own value).
Formally you can put the accessors wherever you need but is normal to put them
just in the parent. That way siblings of that ivar user can understand the
getter and the setter too.
Play some in the workspace it don't bite, you'll see :)
best
sebastian
_____
De: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] En nombre de Robert Sirois
Enviado el: Friday, July 03, 2009 23:22
Para: seaside at lists.squeakfoundation.org
Asunto: [Seaside] Subclasses
Here's a completely noob Smalltalk question:
Let's say you have a superclass ie.:
WAComponent subclass: #aSuperClass
instanceVariableNames: 'iVar'.
and a subclass of it:
aSuperClass subclass: #aSubClass
instanceVariableNames: ''.
Basic super/subclass situation with one iVar... so my question is, when you
instantiate an instance of the subclass, it also has iVar (not static), right?
Or am I totally confused? Also, if I wanted to create accessors for it, would I
put those on the parent or child class?
Thanks,
RS
_____
Hotmail® has ever-growing storage! Don’t worry about storage limits. Check it
out.
<http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_S
torage_062009>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090703/ae78360e/attachment.htm
More information about the seaside
mailing list