Constructs an Agent named name and whose parent is parent.
name
parent
Agent(super.name, super.parent);