iifast

Revision Project 3 - Contact.java

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