In many interviews I am facing these questions
1. Difference between abstract class and interface
We can declare methods virtually in a class and override them in child classes. Then why use of interface.
3. Why are you implementing all the interface methods even though you wont use them.
I know interface concept and abstract class concept but unable to understand their exact usage. I hope someone will explain me.

Rajanikant HawaldarRank #110 · 20.2K reputationPosted Sep 10, 2022, 8:34 AM EDT
Farhan AhmedRank #73 · 25K reputationPosted Sep 11, 2022, 2:15 AM EDT
Jayraj ChhayaRank #304 · 8.2K reputationPosted Sep 10, 2022, 4:03 AM EDT
(1) Difference between abstract class and interface.
public abstract class Shape{
public abstract void draw();
}
public interface Drawable{
void draw();
}
Vishal YelveRank #178 · 13.6K reputationPosted Sep 10, 2022, 12:43 PM EDT
Please refer Shivprasad Koirala sir's video, which will help you to clear your doubt.
https://youtu.be/0EnSPBVrbG0