fork(1) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. class Parent {
  8. public Parent(String hello) {
  9. System.out.println(hello);
  10. }
  11. }
  12.  
  13. class Child extends Parent {
  14. public Child() {
  15. System.out.println("This is child");
  16. }
  17. }
  18.  
  19. public static void main (String[] args) throws java.lang.Exception
  20. {
  21. Ideone one = new Ideone();
  22. Child c = one.new Child();
  23. }
  24. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:14: error: constructor Parent in class Ideone.Parent cannot be applied to given types;
		public Child() {
		               ^
  required: String
  found: no arguments
  reason: actual and formal argument lists differ in length
1 error
stdout

Standard output is empty