daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class A {
  2.     public void method() {return 'A'}
  3. }
  4. class B extends A {
  5.     public void method() {return 'B'}
  6. }
  7.  
  8. A bla = new B();
  9. System.out.println(bla.method()); //выведет B
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top