Computer Science, asked by mithus019gmailcom, 7 months ago

Design a class according to the following specifications: Class Name: Reverse Data Members: String s - describes a sentence String rev - describes the reverse of each word of the sentence Member Methods: Reverse( String str ) - Parameterized Constructor to initialize s with str and rev to default value of String public void change() - to reverse each word of the sentence and assign it to rev public void display() - to display the original sentence as well as the new sentence. Write the main method also to accept a sentence from the user, pass it to the constructor to initialize the data members, create an object and call the member methods.​

Answers

Answered by pavan203015
0

Answer:

csgevs8ywcegcwyavehudhehsiveiwvwjvwhwvwfs gscwmsisv ensg ewkzugwbsiusvw wjiava wkajw sguq sgianwvzuw wcsyq vaiqvsgjs u1oybsysorbhqibxfwo xifgdvibsywj of qgyvxfsv

Similar questions