2015-09-07 11:44:36 -06:00
|
|
|
// hiding/Cake.java
|
2015-06-15 17:47:35 -07:00
|
|
|
// Accesses a class in a separate compilation unit.
|
|
|
|
|
|
|
|
class Cake {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
Pie x = new Pie();
|
|
|
|
x.f();
|
|
|
|
}
|
2015-09-07 11:44:36 -06:00
|
|
|
}
|
|
|
|
/* Output:
|
2015-06-15 17:47:35 -07:00
|
|
|
Pie.f()
|
2015-09-07 11:44:36 -06:00
|
|
|
*/
|