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.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.