ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
What is a primary constructor in Kotlin?
Correct Answer: C — A concise way to initialize a class
In Kotlin, the primary constructor is a concise way to initialize a class. It is declared in the class header and can include parameters to initialize properties.