SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Parent {
  2.    int a=10;
  3. }
  4.  
  5. public class Child extends Parent{
  6.  
  7.   void m1(){
  8.     System.out.println(a);
  9.     System.out.println(this.a);
  10.     System.out.println(super.a);
  11.   }
  12.  
  13.   public static void main(String[] args){
  14.     new Child().m1();
  15.   }
  16. }
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