Discussion :: Scala-1
- When can you use traits?
A.
If the behaviour will not be reused, then make it a concrete class. Anyhow it is not a reusable behaviour
|
B.
In order to inherit from it in Java code, an abstract class can be used
|
C.
If efficiency is a priority then lean towards using a class
|
D.
All of the above
|
Answer : Option D
Explanation :
Be The First To Comment