We can achieve the same functionality as interfaces by using abstract classes, So why java doesn\'t allow the following code?
abstract class Animals
{
pu
Java does not support multiple Inheritance. -" One reason why the Java programming language does not permit you to extend more than one class is to avoid the issues of multiple inheritance of state, which is the ability to inherit fields from multiple classes. " Source https://docs.oracle.com/javase/tutorial/java/IandI/multipleinheritance.html You may find this link useful.