Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Class {
- public int get_id() {
- return 1;
- }
- }
- interface Interface {
- default public int get_id() {
- return 2;
- }
- }
- class Successor extends Class implements Interface {
- }
- public class Main {
- public static void main(String[] args) {
- Successor s = new Successor();
- System.out.println(s.get_id());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement