Skip to content

Commit

Permalink
Merge pull request #59 from blackpanther9229/branch-Edit-contact-details
Browse files Browse the repository at this point in the history
Add new method to support changing details of a Person
  • Loading branch information
CYX22222003 authored Oct 10, 2024
2 parents 04e2b8c + 0699c43 commit ad8652e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/main/java/seedu/address/model/person/Person.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,38 @@ public int hashCode() {
return Objects.hash(name, phone, email, address, tags);
}

/**
* changes name.
* @param newNameValue
*/
public void changeName(String newNameValue) {

}

/**
* changes number.
* @param newNumber
*/
public void changePhoneNumber(String newNumber) {

}

/**
* changes email.
* @param newEmail
*/
public void changeEmail(String newEmail) {

}

/**
* changes address
* @param newAddress
*/
public void changeAddress(String newAddress) {

}

@Override
public String toString() {
return new ToStringBuilder(this)
Expand Down

0 comments on commit ad8652e

Please sign in to comment.