Hard
class Person(val name: String) {
var children: MutableList<Person> = mutableListOf<Person>()
}
I want to add a secondary constructor taking in addition to the name, a parent as a parameter, for this I must write:
Author: W3D TeamStatus: PublishedQuestion passed 538 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Kotlin