Created
February 10, 2017 15:16
-
-
Save ChanSek/848f4b9bd9fccc3361b9aa269ad3a905 to your computer and use it in GitHub Desktop.
Inner class accessing private method of Outer class
This file contains 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
public class Printer { | |
private void printHello() { | |
System.out.println("Hello World"); | |
} | |
private class Test { | |
private void testPrint() { | |
printHello(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment