-
-
Save anonymous/fa62b976ccab60c47fa6 to your computer and use it in GitHub Desktop.
extending an interface in java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gregf@jupiter:~/JAVA$ javac Test.java | |
Test.java:8: no interface expected here | |
public class Test extends Foo { | |
^ | |
1 error | |
gregf@jupiter:~/JAVA$ cat Test.java | |
interface Foo { | |
public void bar(); | |
} | |
public class Test extends Foo { | |
public static void main(String [] args){ | |
} | |
public void bar() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment