iifast

Personne.java

Mar 9th, 2020
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.48 KB | None | 0 0
  1. //List3A22 project !
  2. //Personne.java
  3. package com.mycompany.myapp;
  4.  
  5. /**
  6.  *
  7.  * @author sana
  8.  */
  9. public class Personne {
  10.  private String nom,prenom,mail,nomimg;
  11.  private int age,numero;
  12.  
  13.     public Personne(String nom, String prenom, String mail, String nomimg, int age, int numero) {
  14.         this.nom = nom;
  15.         this.prenom = prenom;
  16.         this.mail = mail;
  17.         this.nomimg = nomimg;
  18.         this.age = age;
  19.         this.numero = numero;
  20.     }
  21.  
  22.     public String getNom() {
  23.         return nom;
  24.     }
  25.  
  26.     public void setNom(String nom) {
  27.         this.nom = nom;
  28.     }
  29.  
  30.     public String getPrenom() {
  31.         return prenom;
  32.     }
  33.  
  34.     public void setPrenom(String prenom) {
  35.         this.prenom = prenom;
  36.     }
  37.  
  38.     public String getMail() {
  39.         return mail;
  40.     }
  41.  
  42.     public void setMail(String mail) {
  43.         this.mail = mail;
  44.     }
  45.  
  46.     public String getNomimg() {
  47.         return nomimg;
  48.     }
  49.  
  50.     public void setNomimg(String nomimg) {
  51.         this.nomimg = nomimg;
  52.     }
  53.  
  54.     public int getAge() {
  55.         return age;
  56.     }
  57.  
  58.     public void setAge(int age) {
  59.         this.age = age;
  60.     }
  61.  
  62.     public int getNumero() {
  63.         return numero;
  64.     }
  65.  
  66.     public void setNumero(int numero) {
  67.         this.numero = numero;
  68.     }
  69.  
  70.     @Override
  71.     public String toString() {
  72.         return "Personne{" + "nom=" + nom + ", prenom=" + prenom + ", mail=" + mail + ", age=" + age + ", numero=" + numero + '}';
  73.     }
  74.  
  75.  
  76. }
Advertisement
Add Comment
Please, Sign In to add comment