Skip to content

Commit

Permalink
Add documentation for Person copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren159 committed Oct 13, 2023
1 parent d6e5e80 commit 6339334
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/seedu/address/model/person/Person.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public Person(Name name, Phone phone, Email email, Address address, Set<Tag> tag
this.isPinned = false;
}

/**
* Copy constructor.
*/
public Person(Person otherPerson) {
this.name = otherPerson.getName();
this.phone = otherPerson.getPhone();
Expand Down

0 comments on commit 6339334

Please sign in to comment.