Ananomous.java
package com.inner;
public String ss="ter";
void ert(){
String ss="ter";
System.out.println("1111 "+ss);
void test()
{
System.out.println("2222 "+this.ss);
}
Ananomous ana=new Ananomous(){
public String ss="an2";
void ert(){
String ss="an1";
System.out.println("aaa 1111 "+ss);
System.out.println("aaa 222 "+this.ss);
}
ana.test();
ana.ert();
System.out.println("rrrrrrrrrr "+ana.ss);
}
No comments:
Post a Comment