I would suggest that your interviewer didn't really know either.
when you implement an interface, you have to create a completely working class, which implements all of the required methods declared in the interface.
When you extend a class, you are inheriting all of the public behaviour of that class, and you can override any specific elements you want to customize, but any functionality you do not add will revert to the superclass.
|