Super super!
BlitzMax Forums/BlitzMax Programming/Super super!
| ||
Can I do this? (Well I know I can't, is there a way around?)Strict Type a Method test:String() Return "a" End Method End Type Type b Extends a Method test:String() Abstract End Type Type c Extends b Method test:String() Return Super.Super.test() End Method End Type Print New c.test() 'i want "a" |
| ||
Wouldn't this work?Strict Type a Method test:String() Return "a" End Method End Type Type b Extends a Method test:String() Return Super.test() End Method End Type Type c Extends b Method test:String() Return Super.test() End Method End Type Print New c.test() 'i want "a" Edited out failed response... Now that I tested. |
| ||
Abstract has to be the base class. |
| ||
What mcv said. you can have the method doing nothing in the derived class, but not abstract. Cheers Charlie |
| ||
I've got around it by just copying the super super method code into the bottom method code. It works for now. You can have abstract overidden methods in derived classes. |