What Will Be The Output Of The Following C Codep Pre Langcsharp #479
What will be the output of the following C# code?</p> <pre><code class="language-csharp" line="1"> class number { int length = 50; public int number1 { get { return length; } set { length = value; } } } class Program { public static void Main(string[] args) { number p = new number(); p.number1 = p.number1 + 40; int k = p.number1 * 3 / 9; Console.WriteLine(k); Console.ReadLine(); } } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Indexers and Exception Handling - Properties and its Applications - Quiz No.1.