Want more features on Pastebin? Sign Up, it's FREE!
Guest

Hard to decompile code

By: acomputerdog on Apr 7th, 2013  |  syntax: Java  |  size: 1.44 KB  |  views: 1,000  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public class InnerClassTest{
  2.     public InnerClassTest(){
  3.  
  4.     }
  5.     public class InnerClass1 extends InnerClassTest{
  6.         public InnerClass1(){
  7.             super();
  8.         }
  9.         public void printMessage1(){
  10.             System.out.println("InnerClass1");
  11.         }
  12.         public void printMessage2(){
  13.             super.printMessage1();
  14.         }
  15.         public void printMessage3(){
  16.             super.printMessage2();
  17.         }
  18.     }
  19.     public class InnerClass2 extends InnerClass1{
  20.         public InnerClass2(){
  21.             super();
  22.         }
  23.         public void printMessage1(){
  24.              System.out.println("InnerClass2");
  25.         }
  26.         public void printMessage2(){
  27.             super.printMessage1();
  28.         }
  29.         public void printMessage3(){
  30.             super.printMessage2();
  31.         }
  32.     }
  33.     public void printMessage1(){
  34.         System.out.println("InnerClassTest");
  35.     }
  36.     public void printMessage2(){
  37.         System.out.println("InnerClassTest");
  38.     }
  39.     public void test(){
  40.         InnerClass2 in2 = new InnerClass2();
  41.         InnerClass1 in1 = new InnerClass1();
  42.         in2.printMessage1();
  43.         in2.printMessage2();
  44.         in2.printMessage3();
  45.         in1.printMessage1();
  46.         in1.printMessage2();
  47.         in1.printMessage3();
  48.         printMessage1();
  49.         printMessage2();
  50.     }
  51.     public static void main(String[] args){
  52.         (new InnerClassTest()).test();
  53.     }
  54. }
clone this paste RAW Paste Data