Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Is the level of cohesion within Question appropriate? package examlnfo; public c

ID: 3769891 • Letter: I

Question

Is the level of cohesion within Question appropriate?

package examlnfo; public class Question { private String question; private String correctAnswer; //Default constructor public Question () { question = " " ; correctAnswer = " " ; public Question(String q, String a){ question = q; correctAnswer = a; } public boolean isCorrect(String a){ return a = correctAnswer; } public void setQuestion(String q){ question - q; } public void setCorrectAnswer(String a){ correctAnswer - a; } public String toString(){ return question; } public String getAnswer(){ return correctAnswer; } }

Explanation / Answer

Yes ,it is purely Cohesive in nature.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote