public class asd
{
public void somemethod(int firstParam, float secondParam)
{
Console.WriteLine("Here are the parameters received: {0}, {1}", firstParam, secondParam);
Console.Read();
}
}
public class Program
{
static void Main()
{
asd dd = new asd();
int howManyPeople = 5;
float pi = 3.14f;
dd.somemethod(howManyPeople, pi);
}
}
////////////////////////
public class asd
{
public void somemethod(int firstParam, float secondParam)
{
Console.WriteLine("Here are the parameters received: {0}, {1}", firstParam, secondParam);
Console.Read();
}
static void Main()
{
asd dd = new asd();
int howManyPeople = 5;
float pi = 3.14f;
dd.somemethod(howManyPeople, pi);
}
}
main فى البرنامج الأول دالة ال
كانت داخل كلاس اما البرنامج الثانى فلا
ممكن توضيح؟؟؟؟
شكرايامقلب القلوب ثبت قلبى على دينك