Ofir Bar
04/11/2020, 7:45 PMparent
which is a Person
type can just call the children
variable as like this list is a part of it?
3. I am also not sure how a Person
instance is passed to the constructor of a class which is Person
Source: https://kotlinlang.org/docs/reference/classes.htmlkevinherron
04/11/2020, 7:48 PMchildren
is a member of Person
and parent
is a Person
Ofir Bar
04/11/2020, 7:50 PMkevinherron
04/11/2020, 7:51 PMkevinherron
04/11/2020, 7:51 PMOfir Bar
04/11/2020, 7:51 PMOfir Bar
04/11/2020, 7:52 PMDico
04/11/2020, 8:18 PMclass Person {
to class Person() {
it will make sense.pavi2410
04/11/2020, 9:07 PMkevinherron
04/11/2020, 9:26 PMPerson
without needing a Person
to seed it (which would need Person
, which would need a Person
...)