[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'
"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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners