Multianswer Regarding multiinheritance in C and interfaces i

Multi-answer:

Regarding multi-inheritance in C++ and interfaces in Java, indicate that answers are correct. A significant problem with multiple inheritance is that two of the parents can define a method with the same name and the same protocol. In Java, abstract classes and interfaces are similar, and sub-classes of an abstract classes must implement all the methods defined in the abstract class. In Java, both abstract classes and interfaces can have object instances. In Java, a class that implements an interface shall implement most of the methods declared in the interface.

Solution

Answer:

A significant problem with multiple inheritence is that two of the parents can define a method with same name and the same protocol.

In Java, abstract classes and interfaces are simlar, and sub-classes of an abstract classes must implement all the methods defined in the abstract class.

3 and 4 are wrong.

Becuase we can not create an instance for an interface or abstract class.

In Java, if a class that implements an interface then it should implement all methods defined in interface not most of them.

Multi-answer: Regarding multi-inheritance in C++ and interfaces in Java, indicate that answers are correct. A significant problem with multiple inheritance is t

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site