Question: JAVA What happens if a Java interface specifies a particular method signature, and a class that implements the interface provides a different signature for that
What happens if a Java interface specifies a particular method signature, and a class that implements the interface provides a different signature for that method? For example, suppose interface Samplelnterface is defined as: public interface sampleInterface public int samplemethod (); and the class sampleclass is public class Sampleclass implements sampleInterface i public boolean sampleMethod () f return true: ) \}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
