iifast

Revision Project 1 - Contact.java

Mar 13th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.95 KB | None | 0 0
  1. // Revision Project 1
  2. //https://imgur.com/a/ESIghSF
  3. //Contact.java
  4.  
  5. package com.mycompany.myapp;
  6.  
  7. /**
  8.  *
  9.  * @author mabt
  10.  */
  11. public class Contact {
  12.     private String nom;
  13.     private String description;
  14.     private String img;
  15.  
  16.     public Contact() {
  17.     }
  18.  
  19.     public Contact(String nom, String description, String img) {
  20.         this.nom = nom;
  21.        this.description=description;
  22.         this.img = img;
  23.     }
  24.  
  25.        /********** getters and setters **********/
  26.    
  27.     public String getNom() {
  28.         return nom;
  29.     }
  30.  
  31.     public void setNom(String nom) {
  32.         this.nom = nom;
  33.     }
  34.  
  35.     public String getDescription() {
  36.         return description;
  37.     }
  38.  
  39.     public void setDescription(String description) {
  40.         this.description = description;
  41.     }
  42.  
  43.    
  44.    
  45.     public String getImg() {
  46.         return img;
  47.     }
  48.  
  49.     public void setImg(String img) {
  50.         this.img = img;
  51.     }
  52.    
  53.    
  54. }
Advertisement
Add Comment
Please, Sign In to add comment