Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Parent {
- int a=10;
- }
- public class Child extends Parent{
- void m1(){
- System.out.println(a);
- System.out.println(this.a);
- System.out.println(super.a);
- }
- public static void main(String[] args){
- new Child().m1();
- }
- }
Add Comment
Please, Sign In to add comment