Home / CSE MCQs / Scala-1 :: Discussion

Discussion :: Scala-1

  1. When can you use traits?
  2. 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

    View Answer

    Workspace

    Answer : Option D

    Explanation :



Be The First To Comment