Navigation:  Tutorials > Beginners Guide to Smalltalk > Programming in Smalltalk > Creating the Question class >

Add class Question as a subclass of Object

Previous pageReturn to chapter overviewNext page

Select Object in the Class Browser. Now use the Class/New menu command to create the Question subclass of Object. Once again, don't package the class by turning the Packaged? check box off in the dialog. Add the new instance variables and re-compile the definition as indicated below.

Object subclass: #Question

       instanceVariableNames: 'text yes no'

       classVariableNames: ''

       poolDictionaries: ''