How to pass values into method

Phagu007
Posted by Phagu007 under C# category on | Points: 40 | Views : 780
using System;
public class FirstClass
{
public void Mymethod(int mparam1, float mparam2)
{
Console.Writeline("The parameter value are : {0},{1}",mparam1,mparam2);
}
}
public class Tester
{
static void main()
{

int no;
float p=4.15f;
FirstClass fc new FirstClass();
fc.Mymethod(no,p)
}
}

Comments or Responses

Login to post response