Vidyalelo
Computer Science · Q109

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 109

Q109

How can you pass parameters to a primary constructor in Kotlin?

A.
by using the var keyword
B.
by using the val keyword
Answer
C.
by using the constructor keyword
D.
by using the init keyword

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board