28 lines
532 B
Java
28 lines
532 B
Java
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;
|
|
}
|
|
} |