Answer Posted / Parul Mishra
An Object in Scala is an instance of a class, which can contain both state (variables) and behavior (methods). Every object in Scala implicitly extends the App trait. This trait defines a main method that can be used to start program execution.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers