Abstract type: Difference between revisions

Content added Content deleted
Line 2,949: Line 2,949:


someClass class >> new
someClass class >> new
^ self abstractClassInstantiationError
self isAbstract ifTrue:[
^ self error:'trying to instantiate an abstract class'
].
^ super new


someClass >> method1
someClass >> method1