07:31C# classes 📦
From the creator
C# classes tutorial example explained #C# #class #classes using System; namespace MyFirstProgram { class Program { static void Main(string[] args) { // class = A bundle of related code. // Can be used as a blueprint to create objects (OOP) Messages.Hello(); Messages.Waiting(); Messages.Bye(); Console.ReadKey(); } } static class Messages { public static void Hello() { Console.WriteLine("Hello! Welcome to the program"); } public static void Waiting() { Console.WriteLine("I am waiting for something"); } public static void Bye() { Console.WriteLine("Bye! Thanks for visiting"); } } }
Published 2021-07-03 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





