First, write a class called TFQuestion that represents a true/false question. This class should have exactly two instance variables: a String variable that holds the statement of a true/false question, and a boolean variable that holds the correct answer. This class should provide the following public methods:
A constructor that takes the statement of a true/false question and the correct answer as parameters and initializes the instance variables with the parameter values
The toString() method that returns the statement of the true/false question
A method checkAnswer() that takes a boolean answer to the true/false question as its parameter and returns true if that answer is correct, false otherwise
I dont really sure how to write these code for tf question
please help me