Class declaration with one public method.
using System; public class MyClass { public void DisplayMessage() { Console.WriteLine( "Welcome to the Grade Book!" ); } } public class MyClassTest { public static void Main( string[] args ) { MyClass myMyClass = new MyClass(); myMyClass.DisplayMessage(); } }