SHARE
TWEET

Untitled

a guest Jun 19th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private String pergunta;
  2.  
  3.  
  4. private ArrayList<String> opcao = new ArrayList<String>();
  5.  
  6.  
  7. private String respostaCorreta;
  8.  
  9.  
  10. //Metodo Construtor
  11. public Perguntas(String p, String res, String opc1, String opc2, String opc3) {
  12.     this.pergunta = p;
  13.     this.opcao.add(opc1);
  14.     this.opcao.add(opc2);
  15.     this.opcao.add(opc3);
  16.     this.respostaCorreta = res;
  17. }
  18.  
  19.  
  20.  
  21. //GET E SET DA PERGUNTA
  22. public String getPergunta() {
  23.     return pergunta;
  24. }
  25.  
  26. public void setPergunta(String p) {
  27.     this.pergunta = p;
  28. }
  29.  
  30. //GET E SET DAS OPCOES
  31.  
  32.  
  33. //GET E SET DA RESPOSTA CORRETA
  34. public String getRespostaCorreta() {
  35.     return respostaCorreta;
  36. }
  37.  
  38. public void setRespostaCorreta(String res) {
  39.     this.respostaCorreta = res;
  40. }
  41.  
  42.  
  43. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top