parent
f9ef489dd0
commit
dd0dd6c76d
@ -1,32 +0,0 @@
|
|||||||
#include <iostream>
|
|
||||||
#include "Personne.hpp"
|
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
int numPers=0;
|
|
||||||
|
|
||||||
Personne::Personne(const std::string& nom, const std::string& prenom, const string& numTel): nom{nom}, prenom{prenom}, numTel{numTel}{
|
|
||||||
numPers = numPers+1;
|
|
||||||
cout << "Personne créée " << nom << " " << prenom << " " << numTel <<"\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
Personne::Personne(): numPers{0}{
|
|
||||||
numPers = numPers+1;
|
|
||||||
cout << "Personne créée \n";
|
|
||||||
}
|
|
||||||
|
|
||||||
const string& Personne::getNom() const{
|
|
||||||
return nom;
|
|
||||||
}
|
|
||||||
|
|
||||||
const string& Personne::getPrenom() const{
|
|
||||||
return prenom;
|
|
||||||
}
|
|
||||||
|
|
||||||
const string& Personne::getNumTel() const{
|
|
||||||
return numTel;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Personne::setNumTel(const string& numTel){
|
|
||||||
this->numTel = numTel;
|
|
||||||
}
|
|
Loading…
Reference in new issue