Created
October 18, 2024 02:58
-
-
Save PramodDutta/6aeaec44ce639fa83f70e29726b2c769 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package oct.ex_18102024_Strings_Wrapper; | |
public class Test { | |
public static void main(String[] args) { | |
ABC a = new ABC(); | |
a.f1(); | |
} | |
} | |
class XYZ{ | |
void displays() { | |
new ABC().f4(); | |
} | |
} | |
class ABC implements I1, I { | |
@Override | |
public void f1() { | |
System.out.println("f1"); | |
} | |
@Override | |
public void f2() { | |
System.out.println("f2"); | |
} | |
@Override | |
public void f3() { | |
} | |
@Override | |
public void f4() { | |
} | |
@Override | |
public void f20() { | |
} | |
@Override | |
public void f10() { | |
} | |
} | |
interface I { | |
void f1(); | |
void f2(); | |
void f3(); | |
void f4(); | |
} | |
interface I1 { | |
void f20(); | |
void f10(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment