Question: What is the code below equivalent to?
- `myClass.foreach(println ())`
- `myClass.foreach(print NIL)`
- `myClass.loop(println ())`
- `myClass.foreach(x => println(x))`
Answer: The correct answer of the above question is Option D:`myClass.foreach(x => println(x))`