diff --git a/Etudiant.php b/Etudiant.php
new file mode 100644
index 0000000..e6b8660
--- /dev/null
+++ b/Etudiant.php
@@ -0,0 +1,47 @@
+nom = $Nom;
+ $this->prenom = $Prenom;
+ $this->age = $Age;
+ }
+
+ public function getNom() {
+ return $this->nom;
+ }
+
+ public function setNom($Nom) {
+ $this->nom = $Nom;
+ }
+
+ public function getPrenom() {
+ return $this->prenom;
+ }
+
+ public function setPrenom($Prenom) {
+ $this->prenom = $Prenom;
+ }
+
+ public function getAge() {
+ return $this->age;
+ }
+
+ public function setAge($Age) {
+ $this->age = $Age;
+ }
+
+ public function getEtudiant() {
+ "
";
+ echo"infos étudiant : "."
";
+ echo"prenom étudiant : ".$this->getPrenom()."
";
+ echo"nom étudiant : ".$this->getNom()."
";
+ echo"age étudiant : ".$this->getAge()."
";
+
+ }
+
+ }
\ No newline at end of file
diff --git a/script1.php b/script1.php
index b4f55d4..d6a001c 100644
--- a/script1.php
+++ b/script1.php
@@ -1,5 +1,10 @@
";
+ $etudiant1 = new Etudiant("test","test",8);
+
+ echo $etudiant1->getEtudiant();
+
\ No newline at end of file