
C# Programlama – Class Kavramı
Ekim 30, 2022
C# Programlama – Ref Keyword
Ekim 30, 2022C# Programlama - Metod Dönüşleri
Metod Dönüşleri Örnekleri:
// Program.cs
using System;
namespace methodReturnsOne
{
class Program
{
//static void Main(string[] args)
//{
// int plusOps = plusO(5,9);
// Console.WriteLine(plusOps);
// Console.ReadKey();
//}
//static int plusO(int x , int y)
//{
// return x + y;
//}
//-----------------------------
static void Main(string[] args)
{
int excOps = excO(10, 100);
Console.WriteLine(excOps);
Console.ReadKey();
}
static int excO(int a , int b)
{
return a * b;
}
}
}