Parameters :
==================
A parameter is a variable in
a method definition.
ex :
public void MyMethod(string my param)
{
// your coding
}
Arguments :
================
when a method is called,the arguments
are the data you pass into the method's
parameteres.
ex :
string myarg1="This is my argument";
myclass.MyMethod(myarg1);
==================
A parameter is a variable in
a method definition.
ex :
public void MyMethod(string my param)
{
// your coding
}
Arguments :
================
when a method is called,the arguments
are the data you pass into the method's
parameteres.
ex :
string myarg1="This is my argument";
myclass.MyMethod(myarg1);
No comments:
Post a Comment