ajout ex2 tp4

This commit is contained in:
Simoes Lukas
2025-09-27 17:38:27 +02:00
parent 3393bcafca
commit 33691f11fb
14 changed files with 171 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package fr.iutfbleau.Quiz;
import java.awt.*;
public class Question {
private String intitule;
private String[] options;
private int indexBonneReponse;
public Question(String intitule, String[] options, int indexBonneReponse) {
this.intitule = intitule;
this.options = options;
this.indexBonneReponse = indexBonneReponse;
}
public String getIntitule() {
return this.intitule;
}
public String[] getOptions() {
return this.options;
}
public int getIndexBonneReponse() {
return this.indexBonneReponse;
}
}