Created
May 10, 2024 14:05
-
-
Save trancuong3/81fdb6541866e03aaa6c019544d7a449 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person { | |
private int id; | |
private String name; | |
private String email; | |
private String address; | |
private int role=2; | |
public Person(int id, String name, String email, String address) { | |
this.id = id; | |
this.name = name; | |
this.email = email; | |
this.address = address; | |
} | |
public int getId() { | |
return id; | |
} | |
public void setId(int id) { | |
this.id = id; | |
} | |
public String getEmail() | |
{ | |
return email; | |
} | |
public void setEmail(String email) | |
{ | |
this.email = email; | |
} | |
public String getAddress() | |
{ | |
return address; | |
} | |
public void setAddress(String address) | |
{ | |
this.address = address; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getName() { | |
return this.name; | |
} | |
public void setRole(int role) { | |
this.role = role; | |
} | |
public int getRole() { | |
return this.role; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment