InterviewSolution
Saved Bookmarks
| 1. |
Is it possible to pass default value in parameter in c# |
|
Answer» YES in CSHARP vesion 4.0 we have facilty to pass parametrs with default value to get this done we take an example as below:- class ProgramDefaultVal { public static void mydefmethod(STRING dfval="testvalue") { Console.WriteLine(dfval); } static void MAIN() { mydefmethod(); } } |
|