I can make abstract class equivalent to interface by putting all abstract methods within abstract class. Why did Java’s designers choose to provide support for interfaces and single inheritance instead of multiple inheritance and abstract classes. What is the advantage?
I can make abstract class equivalent to interface by putting all abstract methods within
Share
At least for one reason (besides the conceptual differences between the two): you can implement multiple interfaces but you can only inherit from a single abstract class at most.