3 ms·
this. Also, if it helps, just think of the impl as an interface with a default behaviour that should be overriden ;) If this is too forgiving, then we can eve
by rapind 16y ago
this.
Also, if it helps, just think of the impl as an interface with a default behaviour that should be overriden ;)
If this is too forgiving, then we can even have the impl methods throw errors ("override me!") and simulate an interface.
- gnaritas 16y agoIn Smalltalk, I can have all the methods throw someMethod self subclassResponsibility and then use the realize class refactoring on a subclass to generate stubs for all methods I must implement, just like an interface.