24 lines
363 B
C#
24 lines
363 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ClassLibrary01
|
|
{
|
|
public class Class1
|
|
{
|
|
|
|
public int Add(int i1, int i2 = 10)
|
|
{
|
|
return i1 + i2;
|
|
}
|
|
|
|
public int Add(int i1)
|
|
{
|
|
return Add(i1, 10);
|
|
}
|
|
|
|
}
|
|
}
|