Answer Posted / Deepankar Arya
"A Companion Object in Scala is a synthetic singleton object created along with its companion class. It has the same name as its companion class and is automatically imported when you import the companion class. This allows for easier access to the instance methods of the companion class."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers