[Newbies] Adapter Pattern in SmallTalk
KingNothing
petpa0l0 at hotmail.com
Wed Aug 29 12:59:42 UTC 2007
Thank you very much.
I will make some exercise with smalltalk and come back to disturb you later
probably ... :$
Thanks again.
Conrad Taylor wrote:
>
> Hi, if you're only interested in converting the Java code to Smalltalk, I
> would simple take one class at a time. For example, using the Glass
> class:
> Object subclass: #Glass
> instanceVariableNames: ''
> classVariableNames: ''
> poolDictionaries: ''
> category: 'Adapter-Example'
>
>
> instance methods '*initialize-release'*
>
> initialize
> content := 0.0
>
> instance methods '*accessing**' protocol*
>
> content: anObject
> content := anObject
>
> class methods '*class initialization' protocol*
> *
> *
> *new*
> * ^super new initialize*
> *
> *
> Good luck,
>
> -Conrad
>
>
--
View this message in context: http://www.nabble.com/Adapter-Pattern-in-SmallTalk-tf4347089.html#a12386578
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
More information about the Beginners
mailing list