Sunday 10 February 2013

Attempting to create a class and two subclasses

Attempt 1 - Squeak 3.0.6

Action-click the desktop -> Browser
Select a package
Amend the code in the lower pane, to change the #NameOfClass and the package name

Object subclass: #Person
    instanceVariableNames: 'forenames surname'
    classVariableNames: ''
    poolDictionaries: ''
    category: 'MyNewApp'



To create the accessors automagically:

Select the class, and action-click, then : Refactor class > Accessors

This seems to work








No comments: