**子類不能繼承/直接調用父類 `private` 方法**,但可**間接調用**。
class Parent {
public void say() { call(); } // 公共方法
private void call() { System.out.println("parent private"); }
}
class Child extends Parent {
public static void main(String[] args) {
Child c = new Child();
c.say(); // 輸出 "parent private" —— 間接調用了父類私有方法
// c.call(); // 編譯錯誤:私有方法不可見
}
}