import java.util.*;import java.lang.*;import java.io.*; class Ideone{ class Parent { public Parent(String hello) { System.out.println(hello); } } class Child extends Parent { public Child() { System.out.println("This is child"); } } public static void main (String[] args) throws java.lang.Exception { Ideone one = new Ideone(); Child c = one.new Child(); }}
Standard input is empty
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
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!