-
Notifications
You must be signed in to change notification settings - Fork 0
/
Question.cs
49 lines (46 loc) · 1.04 KB
/
Question.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Question
{
private string question;
private string answerA, answerB, answerC, answerD;
private char c_answer;
public bool check(char answer)
{
return answer == c_answer;
}
public Question(string question, string answerA, string answerB, string answerC, string answerD, char c_answer)
{
this.question = question;
this.answerA = answerA;
this.answerB = answerB;
this.answerC = answerC;
this.answerD = answerD;
this.c_answer = c_answer;
}
public string get_aA()
{
return answerA;
}
public string get_aB()
{
return answerB;
}
public string get_aC()
{
return answerC;
}
public string get_aD()
{
return answerD;
}
public string get_question()
{
return question;
}
public char get_cA()
{
return c_answer;
}
}