Presentation is loading. Please wait.

Presentation is loading. Please wait.

Structured Problem Solving The SmallTalk Environment.

Similar presentations


Presentation on theme: "Structured Problem Solving The SmallTalk Environment."— Presentation transcript:

1 Structured Problem Solving The SmallTalk Environment

2 Starting a New Worskspace This window appears Type in Session1 New Drag the cursor over the text, and right-click. Select Do it

3 Summary: The SmallTalk Workspace Starting a New workspace: Select File – New Workspace Adding Text: Type in, it is a text editor. Saving:Select File – Save Opening:Select File – Open Executing: Select the Text, right click, Do it

4 The PieEater Grids

5 Messages

6 A New Object

7 Longer Programs

8 Repeating…

9 Attributes Names for Attributes will: Begin with a lower case letter Contain no spaces e.g. customerName numberOfRecords colour

10 Names for Protocols Names for Protocols will: Begin with a lower case letter Contain no spaces e.g. reserveVideo turnRight red

11 Messages 1 Each message which sets an attribute value has the structure: attribute:value For example to set a customer name we would send the message: customerName: Tony The message to an object called customer would be: customer customerName: Tony

12 Messages 2 Each message which requests an attribute value as a reply should be given the same name as the attribute name. for example: customerName is the message which requests the value of an object’s customerName


Download ppt "Structured Problem Solving The SmallTalk Environment."

Similar presentations


Ads by Google