Let's say I have some classes like this:
abstract class View(val writer: XMLStreamWriter) {
// Implementation
}
class TestView(writer: XMLStreamWriter) extends View(writer) {
// Implementation
}
Most subclasses of View are not going to take different constructor arguments. I would like to be able to write something like this:
class TestView extends View {
// Implementation
}
Is there some shortcut to write subclasses so that you don't have to explicitly define the constructor args and pass them to the superclass (so that I don't have to re-write all my subclasses if I change the signature of the superclass)?