MyTetra Share
Делитесь знаниями!
Question.java
12.04.2017
14:44
Раздел: Android - books - AndroidProgramming2e - 3 Жизненный цикл активности
/home/rt/AndroidStudioProjects/AndroidProgramming2e/03_ActivityLifecycle/GeoQuiz/app/src/main/java/com/bignerdranch/android/geoquiz/Question.java

package com.bignerdranch.android.geoquiz;

public class Question {

private int mTextResId;
private boolean mAnswerTrue;

public Question(int textResId, boolean answerTrue) {
mTextResId = textResId;
mAnswerTrue = answerTrue;
}

public int getTextResId() {
return mTextResId;
}

public void setTextResId(int textResId) {
mTextResId = textResId;
}

public boolean isAnswerTrue() {
return mAnswerTrue;
}

public void setAnswerTrue(boolean answerTrue) {
mAnswerTrue = answerTrue;
}
}

 
MyTetra Share v.0.52
Яндекс индекс цитирования