trait Quizful[T] {
 def fetchList: List[T]
}

// consumer side
someQuizful.fetchList
If the List returned above is mutable, what does that say about the Quizful interface?

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Scala quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes