Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
Where will Scala compiler put the println() code?

class Rational(n: Int, d: Int) {
  println("Created "+ n +"/"+ d)
}
Answer
Into the primary constructor

Question
Where will Scala compiler put the println() code?

class Rational(n: Int, d: Int) {
  println("Created "+ n +"/"+ d)
}
Answer
?

Question
Where will Scala compiler put the println() code?

class Rational(n: Int, d: Int) {
  println("Created "+ n +"/"+ d)
}
Answer
Into the primary constructor

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.