ajout ex2 tp4
This commit is contained in:
28
DEV3.1/TP04/02_Quiz/src/Question.java
Normal file
28
DEV3.1/TP04/02_Quiz/src/Question.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user