- interface MyInterfaceExe {
- // Any number of abstract method declarations
- void run();
- // is equivalent to public abstract void run();
- int test();
- // is equivalent to public abstract int test();
- }
The default nature of an interface method's is both public & abstract.
No comments:
Post a Comment