Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A
- {
- public void foo()
- {
- System.out.println("Executing foo");
- }
- }
- class B
- {
- public void bar()
- {
- System.out.println("Executing bar");
- }
- }
- public class Test {
- public static void main(String... args) {
- A a = new A();
- a.foo();
- B b = new B();
- b.bar();
- }
- }
Add Comment
Please, Sign In to add comment