From 4f40aa5190362a86b5f81c32dd7149b18ea12455 Mon Sep 17 00:00:00 2001 From: Saad el din Date: Thu, 19 Sep 2019 14:44:32 +0200 Subject: [PATCH] =?UTF-8?q?cr=C3=A9ation=20de=20classe=20question=20boite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NGCC/src/config/QuestionBoite.java | 19 +++++++++++++++++++ NGCC/src/config/Reponse.java | 27 +++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 NGCC/src/config/QuestionBoite.java create mode 100644 NGCC/src/config/Reponse.java diff --git a/NGCC/src/config/QuestionBoite.java b/NGCC/src/config/QuestionBoite.java new file mode 100644 index 0000000..2ec1b8e --- /dev/null +++ b/NGCC/src/config/QuestionBoite.java @@ -0,0 +1,19 @@ +package config; + +public class QuestionBoite extends Question { +// Type de question differente du normal, c'est une question avec une boite de texte où l'étudiant saisira du texte + private int nbligne; // nb de lignes dans la boite + + public QuestionBoite(String t, boolean b, int nb) { + super(t, b); + nbligne = nb; + } + + public int getNbligne() { + return nbligne; + } + + public void setNbligne(int nbligne) { + this.nbligne = nbligne; + } +} \ No newline at end of file diff --git a/NGCC/src/config/Reponse.java b/NGCC/src/config/Reponse.java new file mode 100644 index 0000000..e68cbfc --- /dev/null +++ b/NGCC/src/config/Reponse.java @@ -0,0 +1,27 @@ +package config; + +public class Reponse { + private String intitule; + private boolean juste = false; + + public String getIntitulé() { + return intitule; + } + + public Reponse(String t, boolean b) { + intitule = t; + juste = b; + } + + public void setIntitule(String intitule) { + this.intitule = intitule; + } + + public boolean isJuste() { + return juste; + } + + public void setJuste(boolean juste) { + this.juste = juste; + } +}