Develop two interfaces Printable and Showable. In Printable interface create an abstract method print() and in Showable interface create an abstract method show(). Now implement both interfaces in a class named TestMultipleInterface and override both method print() and show(). Now test the class TestMultipleInterface.
Answers
Answered by
0
Answer:
If a type implements two interfaces, and each interface define a method that has identical signature, then in effect there is only one method, and they are not distinguishable. If, say, the two methods have conflicting return types, then it will be a compilation error.
Similar questions