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...


How are Primary Constructors different from Secondary Constructors ?



How are Primary Constructors different from Secondary Constructors ?..

Answer / Narendra Kumar Tiwari

Primary Constructors are the regular constructors declared in the class, and they have the same name as the class. They can contain initializer blocks to initialize properties. Secondary Constructors are declared using the constructor keyword inside another constructor and can have unique names.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

Which method is used to get array last index?

1 Answers  


How to declare variable in Kotlin ?

1 Answers  


What is the use of any() function?

1 Answers  


What is the latest version of kotlin?

0 Answers  


What is the difference between Const and Val?

1 Answers  


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

0 Answers  


What are the features of java has that kotlin does not?

1 Answers  


How to declare variables in Kotlin?

1 Answers  


List some of the key modifiers in kotlin?

1 Answers  


What is init block in Kotlin?

1 Answers  


What is the Elvis Operator?

1 Answers  


Explain the use of extension functions

1 Answers  


Categories