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.

16th Mar 2019, 12:57 PM
Soma Venkata Sai Krishna
Soma Venkata Sai Krishna - avatar
1 ответ
+ 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
16th Mar 2019, 1:02 PM
StealthyTaco
StealthyTaco - avatar