Created
December 12, 2010 20:51
-
-
Save egurbuz/738315 to your computer and use it in GitHub Desktop.
Nesne Yönelimli Tasarım - Örnek Kodlar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace cs_giris | |
{ | |
class Matematik | |
{ | |
public int Topla(int a, int b) | |
{ | |
return a + b; | |
} | |
} | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int toplam = Matematik.Topla(9, 19); | |
Console.WriteLine(toplam); | |
Console.ReadLine(); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace cs_giris | |
{ | |
class Matematik | |
{ | |
public static int Topla(int a, int b) | |
{ | |
return a + b; | |
} | |
} | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int toplam = Matematik.Topla(9, 19); | |
Console.WriteLine(toplam); | |
Console.ReadLine(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment