0% found this document useful (0 votes)
2 views2 pages

Source Code

The document contains two Java classes, ChoiceDTO and QuestionDTO, which are part of a quiz application model. ChoiceDTO represents a choice with content and a correctness flag, while QuestionDTO includes a question's content, a hint, and a list of choices. Both classes provide getter and setter methods for their respective attributes.

Uploaded by

2451010031nhan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Source Code

The document contains two Java classes, ChoiceDTO and QuestionDTO, which are part of a quiz application model. ChoiceDTO represents a choice with content and a correctness flag, while QuestionDTO includes a question's content, a hint, and a list of choices. Both classes provide getter and setter methods for their respective attributes.

Uploaded by

2451010031nhan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ChoiceDTO.

java

/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/[Link] to
change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/[Link] to edit this
template
*/
package [Link].quizapp_mssv.model;

/**
*
* @author admin
*/
public class ChoiceDTO {
private String content;
private Boolean isCorrect;

public String getContent() {


return content;
}

public void setContent(String content) {


[Link] = content;
}

public Boolean getIsCorrect() {


return isCorrect;
}

public void setIsCorrect(Boolean isCorrect) {


[Link] = isCorrect;
}

[Link]

/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/[Link] to
change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/[Link] to edit this
template
*/
package [Link].quizapp_mssv.model;

import [Link];

/**
*
* @author admin
*/
public class QuestionDTO {
private String content;
private String hint;

private List<ChoiceDTO> choices;

public String getContent() {


return content;
}

public void setContent(String content) {


[Link] = content;
}

public String getHint() {


return hint;
}

public void setHint(String hint) {


[Link] = hint;
}

public List<ChoiceDTO> getChoices() {


return choices;
}

public void setChoices(List<ChoiceDTO> choices) {


[Link] = choices;
}

You might also like