1. Create a class called Palin with following data members and member methods.
Data members:
String word
String revword;
Member Methods:
Palin()-Default constructor and store the default value as “Madam”.
Palin(String)-Parameterized constructor to initialize the word.
void check()-To check whether the given word is palindrome word or not.
void display()-to display the original word and reversed word.
Write a main method to create an object of the above class and invoke the functions
Answers
Answered by
0
Answer:
I am sorry bro
Explanation:
I know this
Similar questions