- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Delayed initialization with multiple inheritance
Thu, 2012-02-02, 11:45
Dear All,
I have the following class:
class MyClass extends MyAbstractClass(smth) with MyTrait {
}
but MyTrait has to be initialized as the last one.
I know that in the simple case
class MyClass extends {val something = "hello";} with MyAbstractClass(smth)
What in case of multiple inheritance through traits?
Thank you very much
Best Regards
Edmondo
I have the following class:
class MyClass extends MyAbstractClass(smth) with MyTrait {
}
but MyTrait has to be initialized as the last one.
I know that in the simple case
class MyClass extends {val something = "hello";} with MyAbstractClass(smth)
What in case of multiple inheritance through traits?
Thank you very much
Best Regards
Edmondo