Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class AnyOldClass {
- private static class PrivateStaticClass {
- protected void procedure() {
- System.out.println("PrivateStaticClass.procedure() says 'Hi!'");
- }
- }
- static class Subclass extends PrivateStaticClass {
- public void someOtherMethod() {
- super.procedure();
- }
- }
- public static void main(String[] args) {
- new Subclass().someOtherMethod();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement