static void Main(string[] args) { //메서드 오버로딩 Console.WriteLine(Mymath.Abs(52)); Console.WriteLine(Mymath.Abs(-273)); Console.WriteLine(Mymath.Abs(52.273)); Console.WriteLine(Mymath.Abs(-32.103)); Console.WriteLine(Mymath.Abs(21474836470)); Console.WriteLine(Mymath.Abs(-21474836470)); Console.WriteLine("미디어소프트웨어학과,4학년,윈도우프로그래밍[002],20161449,이준성"); }
public static void Main(string[] args) //접근 제한자 추가 public { Class1 class1 = new Class1(); Console.WriteLine(class1.power(10)); Console.WriteLine(class1.power(20)); Console.WriteLine(class1.Multiply(1, 10)); Console.WriteLine(class1.Sum(1, 100)); //메서드 오버로딩 Console.WriteLine(Mymath.Abs(-273)); Console.WriteLine(Mymath.Abs(-27.323)); Console.WriteLine(Mymath.Abs(-21474717289)); }