You can learn to create classes in the C# language. Consider the following code example, which define a class:
using System; public class Hello { public static void Main(string[] args) { System.Console.WriteLine("Hello, World!\n"); } }
Output: Hello, World!
The preceding class declaration provides a method Main() that will display the message "Hello, World!" on your screen.
No comments:
Post a Comment