Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package exo1;
- public class Client {
- private int idClient;
- private String nom;
- private String prenom;
- private String societe;
- private boolean actif;
- static int cpt = 0;
- public int getIdClient() {
- return idClient;
- }
- public String getNom() {
- return nom;
- }
- public String getPrenom() {
- return prenom;
- }
- public String getSociete() {
- return societe;
- }
- public boolean isActif() {
- return actif;
- }
- public void setNom(String nom) {
- this.nom = nom;
- }
- public void setPrenom(String prenom) {
- this.prenom = prenom;
- }
- public void setSociete(String societe) {
- this.societe = societe;
- }
- public void setActif(boolean actif) {
- this.actif = actif;
- }
- public Client(String nom) {
- this.idClient = cpt++;
- this.nom = nom;
- }
- public Client(String nom,
- String prenom, String societe,
- boolean actif) {
- this(nom);
- this.prenom = prenom;
- this.societe = societe;
- this.actif = actif;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement