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

What are the disadvantages of kotlin?

1 Answers  


Mention few features that Kotlin provides but not java ?

1 Answers  


How to make a class data class ?

1 Answers  


What type of programming does Kotlin support?

1 Answers  


Why do we need write open before class name in Kotlin while working on inheritance?

1 Answers  


What is the Target Platform of Kotlin? How is Kotlin-Java interoperability possible?

1 Answers  


What is the type of the following Array?, val arr = arrayOf(1, 2, 3);

0 Answers  


What is Null Safety in Kotlin ?

1 Answers  


How to create static methods in Kotlin?

1 Answers  


What is the difference between val and var?

1 Answers  


What is Ranges operator in Kotlin?

1 Answers  


Is there any dependency of Secondary Constructors on Primary Constructors ?

1 Answers  


Categories