Technically Blogging

Tuesday, November 23, 2004

Tease yourself

Replace the TBD comment with a single line of code that causes this program to display

"Win-Dev!"

You can only use the class PrintMessage method for this purpose. You cannot modify any of the existing code, or add code above or below the existing code.

You can only write one line of code in place of the TBD comment and you cannot use the Console class.

class App

{

static void Main()

{

// TBD

}

}

sealed class Internal

{

sealed class Private

{

static void PrintMessage( string s1, string s2 )

{

System.Console.WriteLine(s1 + "-" + s2);

}

}

}


0 Comments:

Post a Comment

<< Home