tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code04:54

C# classes 📦

Bro Code ↗

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.

Keep exploring Learn to Code