Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface I1 {
- void m1();
- }
- interface I2 {
- void m1();
- }
- public class ConflictingMultipleInterface implements I1, I2 {
- @Override
- public void m1() {
- System.out.println("Works just fine, thank you!");
- }
- public static void main(String[] args) {
- final ConflictingMultipleInterface conflictingMultipleInterface = new ConflictingMultipleInterface();
- conflictingMultipleInterface.m1();
- final I1 asI1 = conflictingMultipleInterface;
- asI1.m1();
- final I2 asI2 = conflictingMultipleInterface;
- asI2.m1();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement