Hi,
I was reading the right solution of this task in the website, however I don't undestand how works the "Human... children" part in the constructor.
Could someone explain it to me?
Thanks
.
public Human(String name, boolean sex, int age, Human... children) {
this.name = name;
this.sex = sex;
this.age = age;
Collections.addAll(this.children, children);
}