Advertisement
Keksicle

Answer

Aug 17th, 2017
3,106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.46 KB | None | 0 0
  1. package;
  2.  
  3. /**
  4.  * ...
  5.  * @author Reka
  6.  */
  7. class Answer
  8. {
  9.     public var question:String;
  10.     public var answer1:String;
  11.     public var answer2:String;
  12.     public var answer3:String;
  13.     public var correctAnswer:Int;
  14.    
  15.     public function new(newStory:String, newAnswer1:String, newAnswer2:String, newAnswer3:String, newCorrect:Int)
  16.     {
  17.         question = newStory;
  18.         answer1 = newAnswer1;
  19.         answer2 = newAnswer2;
  20.         answer3 = newAnswer3;
  21.         correctAnswer = newCorrect;
  22.     }
  23.    
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement