Advertisement
MOISES_QUISPE_ROJAS

Estructura Datos 2021 - TP03 Clase Mail

Oct 13th, 2021
1,052
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.54 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.    Flores ,Cesar Ismael                 | Lic. en Sistemas         | 1782
  7.    Llampa, Ariel Angel Gabriel          | Ing. Informatica         | 8445
  8.    Machaca, Rodrigo Agustin             | Ing. Informatica         | 8512
  9.    Perez, Emanuel Ismael                | Ing. Informatica         | 8393
  10.    Quispe Rojas, Moises Esteban Nicolas | Ing. Informatica         | 7286
  11.  
  12. Clase correo
  13.  */
  14. package Queue;
  15.  
  16. public class Mail {
  17.     private String sender;   // Remitente
  18.     private String isuue;    // Asunto
  19.     private String body;     // Cuerpo
  20.  
  21.     public Mail(String sender, String isuue, String body) {
  22.         this.sender = sender;
  23.         this.isuue = isuue;
  24.         this.body = body;
  25.     }
  26.  
  27.     public String getSender() {
  28.         return sender;
  29.     }
  30.  
  31.     public void setSender(String sender) {
  32.         this.sender = sender;
  33.     }
  34.  
  35.     public String getIsuue() {
  36.         return isuue;
  37.     }
  38.  
  39.     public void setIsuue(String isuue) {
  40.         this.isuue = isuue;
  41.     }
  42.  
  43.     public String getBody() {
  44.         return body;
  45.     }
  46.  
  47.     public void setBody(String body) {
  48.         this.body = body;
  49.     }
  50.  
  51.     @Override
  52.     public String toString() {
  53.         return "Mail{" +
  54.                 "\n Remitente= " + sender +
  55.                 "\n Asunto= " + isuue +
  56.                 "\n Cuerpo= " + body +
  57.                 "\n}\n";
  58.     }    
  59. }
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement