Does anyone have an example or a starting point for this? I have
written a program that checks for palindromes but I am lost with this.
Any help would be great, thank you!
Create a class that models a palindrome. The program should have getter and setter methods for the instance variable storing the palindrome. A helper method should indicate whether a word is or is not a palindrome. The setter method should only set the palindrome instance variable if the proposed word is in fact a palindrome. Use the main method to instantiate a palindrome class and verify that its getter and setter methods work correctly.