You are extending an application that stores and displays the results of various types of
foot races. The application contains the following definitions:
public interface IDisplayResult
{
void Display();
}
public class Race
{
public int Seconds;
public virtualvoid Display()
{
Console.WhiteLine(Seconds);
}
}
The following code is used to display the result for a race:
var r1 = new FootRace();
var r2 = r1 as IDisplayResult;
r1.Seconds = 99;
r2.Display();
r1.Display();
r1.DisplayRaw();
The contents of the console must be as follows:
You need to implement the FootRace class.
Match the method declaration to the method body, (To answer, drag the appropriate declaration from the column on the left to its body on the right. Each declaration may be used once, more than once, or not at all. Each correct match is worth one point.)
{"51.1777_27.5362":[{"id":17781413,"answer":"public override void Display()","x":51.1777,"y":27.5362}],"51.3279_52.1739":[{"id":17781414,"answer":"public void DisplayRaw()","x":51.3279,"y":52.1739}],"51.3279_76.8116":[{"id":17781415,"answer":"void IDisplayResult.Display()","x":51.3279,"y":76.8116},{"id":17781416,"answer":"private void Display()","x":51.3279,"y":76.8116}]}
Arrastra la opción correcta a cada uno de los puntos naranjas
public override void Display()
public override void Display()
public void DisplayRaw()
public void DisplayRaw()
void IDisplayResult.Display()
void IDisplayResult.Display()
private void Display()
private void Display()