Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //List3A22 project !
- //Personne.java
- package com.mycompany.myapp;
- /**
- *
- * @author sana
- */
- public class Personne {
- private String nom,prenom,mail,nomimg;
- private int age,numero;
- public Personne(String nom, String prenom, String mail, String nomimg, int age, int numero) {
- this.nom = nom;
- this.prenom = prenom;
- this.mail = mail;
- this.nomimg = nomimg;
- this.age = age;
- this.numero = numero;
- }
- public String getNom() {
- return nom;
- }
- public void setNom(String nom) {
- this.nom = nom;
- }
- public String getPrenom() {
- return prenom;
- }
- public void setPrenom(String prenom) {
- this.prenom = prenom;
- }
- public String getMail() {
- return mail;
- }
- public void setMail(String mail) {
- this.mail = mail;
- }
- public String getNomimg() {
- return nomimg;
- }
- public void setNomimg(String nomimg) {
- this.nomimg = nomimg;
- }
- public int getAge() {
- return age;
- }
- public void setAge(int age) {
- this.age = age;
- }
- public int getNumero() {
- return numero;
- }
- public void setNumero(int numero) {
- this.numero = numero;
- }
- @Override
- public String toString() {
- return "Personne{" + "nom=" + nom + ", prenom=" + prenom + ", mail=" + mail + ", age=" + age + ", numero=" + numero + '}';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment