Question 286
How does a console-based application differ from a Windows Forms application?
Question 287
Which of the following must exist to inherit attributes from a particular class?
Question 288
How many parameters can a default constructor have?
Question 289
You are reviewing a C# program that contains the following class:
public class Rectangle
{
public double Length {get; set;}
public double Width { get; set; }
}
The program executes the following code as part of the Main method:
Rectangle r1, r2;
r1 = new Rectangle { Length = 10.0, Width = 20.0 };
r2 = r1;
r2.Length = 30;
Console.WriteLine(r1.Length);
What will be the output when this code is executed?
Question 290
The following functions are defined:
What does the console display after the following line?
Printer(2)
