/////////////////////////////////////////////////////////// // HelloWorld.cs - First Demonstration of C# // // // // Jim Fawcett, CSE681-OnLine, Wk #3a // /////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HelloWorld { public class HelloWorld { public static string titleMessage() { string msg = "\n First C# Demonstration - Hello World of course!"; msg += "\n =================================================\n"; return msg; } public string contentMessage() { return "\n Hello CSE681-OnLine World\n\n"; } static void Main(string[] args) { Console.Write(HelloWorld.titleMessage()); HelloWorld p = new HelloWorld(); Console.Write(p.contentMessage()); } } }