lang="java">package Pack1; abstract class A { int i; public A(int i) { this.i=i; System.out.println(this.i); } } class B extends A() //Syntax error on token "extends",@ expected after this token { //Syntax error on token "{", delete this token public B(int a) //syntax error on token "public" delete this token. And Syntax error on token "int", delete this token { super(a); } } //Syntax error on token "}", delete this token public class Test3 { public static void main(String[] args) { B b1=new B(7); } }
class B extends A()
class B extends A
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)