位置:首頁 > 軟件操作教程 > 編程開發(fā) > C# > 問題詳情

C#重載方法

提問人:劉冬梅發(fā)布時間:2020-10-13

 public int MethodTest(int i,int j)   //重載方法1

{

//代碼

}

public int MethodTest(int i) //重載方法2

{

//代碼

}

public string MethodTest(string sr) //重載方法3

{

//代碼

}

繼續(xù)查找其他問題的答案?

相關(guān)視頻回答
回復(0)
返回頂部