0
What is the difference b/w interface and abstract class? We can do all the things in abstract class itself but why interface?
Interface vs abstract class Sample codes are most welcome.
1 Antwort
+ 5
Yes you are correct the two are basically identical but the thing is, a class can only inherent from one super class, where as 1 class can implement multiple interfaces.
https://code.sololearn.com/c742te2Mo7p8/?ref=app
https://code.sololearn.com/cyH896uKDFpO/?ref=app