What is companion object?
Answer / Km. Durgesh
"A Companion Object in Kotlin is a static member of a class that can be accessed without creating an instance of the class. It is defined using the 'companion object' keyword and shares the same name as its enclosing class."
| Is This Answer Correct ? | 0 Yes | 0 No |
Can you execute Kotlin code without JVM?
Why to use kotlin?
What are the features available in kotlin but not in java?
List the Basic data types of Kotlin?
What is the use of any() function?
Describe the use of extension function?
Does Kotlin support primitive datatypes as like in Java?
What are the advantages of using kotlin?
What are the types of strings available in kotlin?
What is companion object?
How do you declare a variable in kotlin?
What is the Elvis Operator?