I'm creating a case class with default-valued constructor:
abstract class Interaction extends Action
case class Visit(val url: String)(val timer: Boolean = false) extends Interaction
But I cannot create any of its instance without using all of its parameters, for example. If I write:
Visit("https://www.linkedin.com/")
The compiler will complain:
missing arguments for method apply in object Visit;
follow this method with `_' if you want to treat it as a partially applied function
[ERROR] Visit("http://www.google.com")
What do I need to do to fix it?