Skip to main content
summaryrefslogtreecommitdiffstats
blob: 308c8bd020a9cb49ae182c84465558bce301ae44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//abstract and make private, only getter
package p;
class A{
	public int f;
	void m(){
		f= f;
	}
}
class B{
	int m(){
		A a= new A();
		a.f= a.f;
		return a.f;
	}
}

Back to the top