gudii9
asked on
code issue
package SuperThis;
public class Sub extends Super {
/*public static void main(String[] args) {
super.bar();
this.bar();
}*/
public void bar() {
System.out.println("Sub.bar()...");
}
public void test() {
super.bar();
this.bar();
}
// Sub sub=new Sub();
// sub.test();
this.test();
}
why above code is not workingi see error as below at line 21,15
Syntax error, insert "}" to complete ClassBody
Please advise
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
EXPERT CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Damn, missed that myself. Good catch girionis.