Advertisement
MOISES_QUISPE_ROJAS

Estructura Datos 2021 - Clase Contact

Oct 27th, 2021
1,167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.83 KB | None | 0 0
  1. /* Estructura de Datos - Facultad de Ingenieria - Universidad Nacional de Jujuy
  2.  *
  3.  * @Autor: Equipo 4.1
  4.  */
  5.  /*      @integrantes:                  |    @Carrera:             |   @LU:
  6.                                         |                          |
  7.    Flores ,Cesar Ismael                 | Lic. en Sistemas         | 1782
  8.    Llampa, Ariel Angel Gabriel          | Ing. Informatica         | 8445
  9.    Machaca, Rodrigo Agustin             | Ing. Informatica         | 8512
  10.    Perez, Emanuel Ismael                | Ing. Informatica         | 8393
  11.    Quispe Rojas, Moises Esteban Nicolas | Ing. Informatica         | 7286
  12.  
  13.     Clase Contacto
  14.  */
  15. package List;
  16.  
  17. public class Contact {
  18.     private String name;
  19.     private String job;
  20.     private String telefone;
  21.     private String mail;
  22.  
  23.     public Contact(String name, String job, String telefone, String mail) {
  24.         this.name = name;
  25.         this.job = job;
  26.         this.telefone = telefone;
  27.         this.mail = mail;
  28.     }
  29.  
  30.     public String getName() {
  31.         return name;
  32.     }
  33.  
  34.     public void setName(String name) {
  35.         this.name = name;
  36.     }
  37.  
  38.     public String getJob() {
  39.         return job;
  40.     }
  41.  
  42.     public void setJob(String job) {
  43.         this.job = job;
  44.     }
  45.  
  46.     public String getTelefone() {
  47.         return telefone;
  48.     }
  49.  
  50.     public void setTelefone(String telefone) {
  51.         this.telefone = telefone;
  52.     }
  53.  
  54.     public String getMail() {
  55.         return mail;
  56.     }
  57.  
  58.     public void setMail(String mail) {
  59.         this.mail = mail;
  60.     }
  61.  
  62.     @Override
  63.     public String toString() {
  64.         return "Contacto{" +
  65.                 "\n Nombre= " + name +
  66.                 "\n Trabajo/Empresa= " + job +
  67.                 "\n Telefono=" + telefone +
  68.                 "\n Mail=" + mail +
  69.                 "\n}";
  70.     }  
  71. }
  72.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement