daily pastebin goal
52%
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
Top