Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. class A { public void a(){} }
  2. class B { public void b(){} }
  3.  
  4. class C {
  5. void foo() {
  6. A.a();
  7. B.b();
  8. }
  9. }
  10.  
  11. class C {
  12. void foo() {
  13. new A().a();
  14. new B().b();
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement