C# classes 📦
Vložit
- čas přidán 30. 06. 2024
- 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");
}
}
} - Věda a technologie
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");
}
}
}
You are an absolute chad at explaining things in simple way. Appreciate you
That why we is such a Bro at Code (sorry couldn't help myself)
Wow the timing is just perfect, I have to learn c# for college that I will go later in the year, thanks!
Good job you are always explaining very clearly 👏
Very good clear and succinct presentation. Thanks.
BLESS UP
Awesome explanation ❤ Thank you
You are explaining so well bro! thank u very much
This was very helpful, thank you! 🙂
Great info, finally get it.... subscribed
you are a legend, im studying it and my teachers explain it as if im already experienced. this is a huge help
DUDE RIGHT?
This is pure gold, amazing :D
Thanks for the video Bro.
finally I found a good video about classes ty broski men
THANK YOU FOR BEING SUCH A BRO AND CREATING THIS CHANNEL :> bro
Thanks again Bro!
U dont understand how much i appreciate this
thank you! this video help me a lot!
great video!
You are the Best thanks!
Cool bro, thanks.
great stuff an, thanks
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
Nice vedio Bro!!!
nice one bro
GIGABRO!
Thanks Bro!
thanks bro i appreciate it
good explination thanks
U R Epic
Love it! Random comment
Dankie Ngamla
You are such a bro, bro.
awesome
Thanks bro
Thank you
Thanks bro code
Can't I just write the namespace and then directly after start with a function without a class ?
noice
👍
The static keyword doesn't let me have access to members of the other class. I wonder if it is just my version of .net
miss you bro. i am back :) from python
Sir,, there should be order of videos....
constrector ? object? thanks
lesson check😇
Let's get patterns in 15 minutes?
interaction
random comment
A random comment down below
down below
You are the Best thanks!
Thanks bro