1
Fork 0
mini-java/miniJava/tests/pa3_tests/fail365.java

16 lines
278 B
Java
Raw Normal View History

2014-04-08 00:06:13 +00:00
/*** no access to a private method from outside class via qualified ref
* COMP 520
* Identification
*/
class fail65 {
public static void main(String[] args) {
F05 c = new F05();
c.next.next.foo();
}
}
class F05 {
public F05 next;
private void foo() {}
}