📜  过程抽象示例 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:09.040000             🧑  作者: Mango

代码示例1
public void myFunction(String name) {
    // whatever
}

public void myFunction(String name, boolean isAdult) {
    // whatever, but now this is called whenever the extra parameter
    // is callled instead of the other one
}