Right now, I achieve this by doing the following:
class Base {
func requiredMethod() { NSException(...).raise() }
}
class Sub: Base {
override func requiredMethod() { ... }
}
Can I get some help from the compiler here? I don't want to make A a protocol because then I can't provide functionality to my child classes from my parent class.
What I really want is a Scala trait or Java abstract class, but I'm guessing that's not possible in Swift?