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
Be the first to start discuss.
Q. Which of the following statements correctly define .NET Framework?
Q. A variable which is declared inside a method is called a________variable
Q. Except == operator, which methods can be used to compare two strings?
Q. Web Forms consists of a _______ and a _________ .
Q. In case of the Params type parameter____________.
Q. What is the correct syntax to declare a variable in C#?
Q. Which access specifier should be used for Main() method in C#?
Q. Which of the following statements is correct about constructors?
Discusssion
Login to discuss.