Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private String pergunta;
- private ArrayList<String> opcao = new ArrayList<String>();
- private String respostaCorreta;
- //Metodo Construtor
- public Perguntas(String p, String res, String opc1, String opc2, String opc3) {
- this.pergunta = p;
- this.opcao.add(opc1);
- this.opcao.add(opc2);
- this.opcao.add(opc3);
- this.respostaCorreta = res;
- }
- //GET E SET DA PERGUNTA
- public String getPergunta() {
- return pergunta;
- }
- public void setPergunta(String p) {
- this.pergunta = p;
- }
- //GET E SET DAS OPCOES
- //GET E SET DA RESPOSTA CORRETA
- public String getRespostaCorreta() {
- return respostaCorreta;
- }
- public void setRespostaCorreta(String res) {
- this.respostaCorreta = res;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement