Question: What's the difference between an interface and a complete abstract class with only abstract methods? There is no difference between the two. Interfaces are preferable
What's the difference between an interface and a complete abstract class with only abstract methods?
There is no difference between the two.
Interfaces are preferable because interfaces support multiinheritance.
An abstract class must have at least one abstract method while an interface may have no abstract methods at all.
As long as they are not used in an inheritance relationship, both can be used to create objects of it and those objects would work the same way.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
