fork download
  1. class Base {
  2. Base(int num) { System.out.println("Base num = " + num); }
  3. }
  4.  
  5. class Sub extends Base {
  6. Sub(int num) { super(num + 77); }
  7. }
  8.  
  9. class Main {
  10. public static void main(String[] args) {
  11. Base b = new Base(123);
  12. };
  13. }
  14.  
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
Base num = 123