Created
April 15, 2021 22:23
-
-
Save dionyziz/5d13a42a3a49f041f91f278c5fccf60b 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
import java.io.*; | |
import java.util.*; | |
public class Solution { | |
public static class A { | |
} | |
public static class B extends A { | |
} | |
public static void mymethod(A a) { | |
System.out.println("Hello world!\n"); | |
} | |
public static void main(String[] argv) { | |
B b = new B(); | |
Solution.mymethod(b); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment