Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abstract class A {
- public void abc() {
- System.out.println("Class A");
- }
- }
- interface B {
- default void abc() {
- System.out.println("Interface B");
- }
- }
- public class Test extends A implements B {
- public static void main(String[] args) {
- Test t = new Test();
- t.abc();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement