Home / Programming MCQs / C# MCQs / Question
R
Q. What will be the output of the following C# code?
using System; namespace MyApplication { public class Class1 { public static int x = 10; } public class Class2: Class1 { public static int x = 20; static void Main(string[] args) { Console.WriteLine(x + ", " + Class1.x); } } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What will be the output of the following C# code?
Private Button print = new button();
In C#, a subroutine is called a ________.
Which keyword is used to declare an interface in C#?
What will be the output of the following C# code?
Which of the following statements is correct about Managed Code?
Every class directly or indirectly extends the______class.
Each data provider class is grouped and accessible through its:
Discusssion
Login to discuss.