From b30b76884baf0c13d854d4b88638765aff8dba38 Mon Sep 17 00:00:00 2001 From: xuxin <840198532@qq.com> Date: Sat, 18 Jul 2026 14:14:42 +0800 Subject: [PATCH] =?UTF-8?q?day04-=E6=96=B9=E6=B3=95=5F=E9=87=8D=E8=BD=BD?= =?UTF-8?q?=E7=BB=83=E4=B9=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- day04/src/com/inmind/method/Demo06.java | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 day04/src/com/inmind/method/Demo06.java diff --git a/day04/src/com/inmind/method/Demo06.java b/day04/src/com/inmind/method/Demo06.java new file mode 100644 index 0000000..44814cc --- /dev/null +++ b/day04/src/com/inmind/method/Demo06.java @@ -0,0 +1,45 @@ +package com.inmind.method; + +public class Demo06 { + + public static void main(String[] args) { + + } + /* + 下列哪些函数和给定方法重载了。 + a.int show(int x,float y,char z) + + b.void show(float b,int a,char c) + + c.void show(int c,float a,char b) + + d.void show(int a,int b,int c) + + e.double show() + */ + + void show(int a,float b,char c) + { + + } + double show(){//方法重载 + return 0.0; + } + + void show(int a,int b,int c){//方法重载 + + } + + /*void show(int c,float a,char b){ 不是重载 + + }*/ + + void show(float b,int a,char c){//方法重载 + + } + + + /*int show(int x,float y,char z){ 不是重载 + return 0; + }*/ +}