摘要:
方法重载 java允许同一个类中,多个同名方法的存在,但要求的形参列表不一致 使用细节 方法名:必须相同 形参列表:必须不同(形参类型或个数或顺序,至少有一样不同,参数名无要求) 返回类型:无要求 代码示例: public class OverLoadExercise { public static 阅读全文
posted @ 2021-02-26 15:30
Irisx33
阅读(69)
评论(0)
推荐(0)
摘要:
public class EightQueen { public static void main(String[] args) { int[][] queenboard = new int[8][8]; int[][] attackboard = new int[8][8]; Queen q1 = 阅读全文
posted @ 2021-02-26 10:00
Irisx33
阅读(56)
评论(0)
推荐(0)

浙公网安备 33010602011771号