Simply try to use the class, obviously output stub for displaycurrenttime.
The line that is commented is to try to read in the black box and output: But obviously two are not parallel. Run immediately to be ejected and error. How do I read directly in the Run box?
string S;
s = Console.ReadLine ();
Console.WriteLine (s);
Console.readkey (); By doing so, ReadLine will read the variable s directly on the next line, that is, the next line will read only one variable, not a space separated by a continuous read-in.
Note the third line of the main function
At this point the result is
Switch
The result changes
parameter name: The value of this form tells the compiler which argument the statement jumps to, and can be assigned, and not limited to jumping parameters
When you apply the sealed modifier to a class , this modifier prevents other classes from inheriting from the class, but you can use this class to inherit other classes
Class N {}
Sealed class M:n {}
M inherits N, but m cannot be inherited by another class.
Override is not implemented for the time being. To be modified.
Ask how to read multiple variables directly on the same line, that is, a space-delimited read-in.
C # Third Job (class essays)