Discussion :: Constructors
-
What will be the output of the C#.NET code snippet given below?
namespace FreshergateConsoleApplication { class Sample { public static void fun1() { Console.WriteLine("Gate1 method"); } public void fun2() { fun1(); Console.WriteLine("Gate2 method"); } public void fun2(int i) { Console.WriteLine(i); fun2(); } } class MyProgram { static void Main(string[ ] args) { Sample s = new Sample(); Sample.fun1(); s.fun2(123); } } }
A.
|
B.
|
C.
|
D.
|
E.
|
Answer : Option A
Explanation :
No answer description available for this question.
Be The First To Comment