[Newbies] Matrix with Objetcs
Gabriel La Torre
boludecesvarias at gmail.com
Wed Oct 28 03:34:37 UTC 2009
Hi! this is the first time I use Smalltalk. I created a class called Celd
and I wanted to create a class called Matrix which will be a 2D-array of
Celd or a Matrix if you prefere.
Could someone help me with the code?
I tried this:
Object subclass: #Matrix
instanceVariableNames: 'cells range'
classVariableNames: ''
poolDictionaries: ''
category: 'fiuba-explorador'
initialize
"Inicializa por defecto"
cells := Celd new.
range := 6
But when I try to add a Cell... I can't thank you very much in advance.
Gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20091028/daf77626/attachment.htm
More information about the Beginners
mailing list