C# classes 📦

preview_player
Показать описание
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");
}
}
}
Рекомендации по теме
Комментарии
Автор

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");
}
}
}

BroCodez
Автор

You are an absolute chad at explaining things in simple way. Appreciate you

thatguyty
Автор

you are a legend, im studying it and my teachers explain it as if im already experienced. this is a huge help

zoevanweerlee
Автор

so the base tool for making specified tools...
i already love it❤

ratkngg
Автор

Wow the timing is just perfect, I have to learn c# for college that I will go later in the year, thanks!

Galionare
Автор

You are explaining so well bro! thank u very much

hardicz
Автор

Good job you are always explaining very clearly 👏

Alexhusen
Автор

U dont understand how much i appreciate this

justchap
Автор

Very good clear and succinct presentation. Thanks.

regielb
Автор

Thank you so much, This is a huge help.

CodeSensei
Автор

Great info, finally get it.... subscribed

MM-bwlo
Автор

Today I dont have to go to school so I'm speedrunning C# in Microsoft learn but I still don't understand and Bro Code's video saves me tons of time

nudtanunwarnnissorn
Автор

THANK YOU FOR BEING SUCH A BRO AND CREATING THIS CHANNEL :> bro

fishylefishe
Автор

finally I found a good video about classes ty broski men

xaadadaa
Автор

Sir, , there should be order of videos....

MuhammadFarooq-jflo