0 votes
in Scala Constructs by
Why do we need App in Scala?

1 Answer

0 votes
by

App is a helper class that holds the main method and its Members together. The App trait can be used to quickly turn Objects into Executable programs. We can have our classes extend App to render the executable code.

object Madanswer extends App{

     println("Hello World")

   }

...