Answer Posted / Vinod Kumar Tiwari
"A 'companion object' in Scala is a special type of object that shares the same name as its accompanying class. It provides an alternative way to access methods and values defined within the class without creating an instance of it."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers