Which keyword is used to refer baseclass constructor to subclass constructor
What will the given code snippet specify?class MyClass{ char chrs = 'A' ; public IEnumerator GetEnumerator() { for (int i = 20; i >=0; --i) if (i == 10) yield break; yield return (char)((chrs + i)); }}class Program{ static void Main(string[] args) { MyClass mc = new MyClass(); foreach (char ch in mc) Console.Write(ch + " "); Console.WriteLine(); Console.ReadLine(); }}
Consider a class maths and we had a property called as sum.b is a reference to a maths object and we want the statement b.sum = 10 to fail.Which of the following is the correct solution to ensure this functionality
What will be the declaration of the variable ptr as the pointer to array of 6 floats
Select the relevant code set to fill up the blank for the following program static void Main(string[] args) { int x = 10, y = 20; int res; /*_______________*/ Console.WriteLine(res); }
“A mechanism that binds together code and data in manipulates, and keeps both safe from outside interference and misuse.In short it isolates a particular code and data from all other codes and data. A well-defined interface controls the access to that particular code and data.”
Can the method add() be overloaded in the following ways in C#?public int add() { }public float add(){ }
Choose the statement which defines the Nullable type Correctly
A ___________ performs invisible tasks even if you write no code
XML digital signatures provides
What does the given code set specifies?public static int Compare(string strA, string strB)
The correct way to define a variable of type struct abc among the following is struct abc { public string name; protected internal int age; private Single sal; }