Guest User

Untitled

a guest
Jan 22nd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment