April 19, 2024

Answer to Q4

 

Smalltalk expression Class of answer Textual representation of answer
kermit Frog An instance of class Frog (position 1, colour Green)
kermit position printString ByteString '1'
34 printString ByteString '34'

kermit colour printString,' Onions'

ByteString 'Green Onions'

 

Back to « Basic Questions

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Up to top of page