trait implementation
Posted
by Jeriho
on Stack Overflow
See other posts from Stack Overflow
or by Jeriho
Published on 2010-04-28T12:28:52Z
Indexed on
2010/04/28
12:33 UTC
Read the original article
Hit count: 300
If I have some traits like:
trait A {...}
trait B extends A{...}
trait C1 extends B{...}
trait C2 extends A{...}
I can write class in two ways (C1 and C2 add same functionality)
class Concrete1 extends B with C1
class Concrete2 extends B with C2
What variant is better(efficient)?
© Stack Overflow or respective owner