Answer Posted / Arjun Dwivedi
"Anonymous objects in Scala are objects that do not have a name. They can be created using the apply method of the class they belong to, followed by curly braces containing the members and methods. The syntax for creating an anonymous object is: class_name.apply(members_and_methods) or new class_name { members_and_methods }".
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers