Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is companion object?



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

Post New Answer

More Kotlin Interview Questions

Can you execute Kotlin code without JVM?

1 Answers  


Why to use kotlin?

1 Answers  


What are the features available in kotlin but not in java?

1 Answers  


List the Basic data types of Kotlin?

1 Answers  


What is the use of any() function?

1 Answers  


Describe the use of extension function?

1 Answers  


Does Kotlin support primitive datatypes as like in Java?

0 Answers  


What are the advantages of using kotlin?

1 Answers  


What are the types of strings available in kotlin?

1 Answers  


What is companion object?

1 Answers  


How do you declare a variable in kotlin?

1 Answers  


What is the Elvis Operator?

1 Answers  


Categories