Cognizant interview question

Reverse the given String. How abstract class is different from interface.