Question
What is an object declaration in Scala?
Select an option. Your answer will be checked instantly.
Correct Answer: B. A singleton instance
Explanation:
An object is created once and can hold methods and values.
It is often used for application entry points or utility functions.
Leave a Reply