Loading practice questions
What is a primary constructor in Kotlin?
Correct Answer: C — A concise way to initialize a class
Explanation:
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.