C# classes 📦

Sdílet
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

Komentáře • 54

  • @BroCodez
    @BroCodez  Před 3 lety +14

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

  • @thatguyty96
    @thatguyty96 Před rokem +19

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

    • @hyrum2
      @hyrum2 Před měsícem

      That why we is such a Bro at Code (sorry couldn't help myself)

  • @Galionare
    @Galionare Před 3 lety +4

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

  • @Alexhusen4607
    @Alexhusen4607 Před 14 dny

    Good job you are always explaining very clearly 👏

  • @regielb1
    @regielb1 Před rokem

    Very good clear and succinct presentation. Thanks.

  • @BlackPanthaa
    @BlackPanthaa Před 8 měsíci

    BLESS UP

  • @sreenivaskarasala7411
    @sreenivaskarasala7411 Před 5 měsíci

    Awesome explanation ❤ Thank you

  • @hardicz2919
    @hardicz2919 Před rokem

    You are explaining so well bro! thank u very much

  • @xxx6763
    @xxx6763 Před rokem

    This was very helpful, thank you! 🙂

  • @MM-bw1lo
    @MM-bw1lo Před rokem

    Great info, finally get it.... subscribed

  • @zoevanweerlee3865
    @zoevanweerlee3865 Před 5 měsíci +1

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

  • @user-eg7dz4bc5n
    @user-eg7dz4bc5n Před 12 dny

    This is pure gold, amazing :D

  • @spartanranger
    @spartanranger Před 2 lety +1

    Thanks for the video Bro.

  • @xaadadaa
    @xaadadaa Před 2 lety

    finally I found a good video about classes ty broski men

  • @fishylefishe8611
    @fishylefishe8611 Před 11 měsíci

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

  • @LucParent905
    @LucParent905 Před 2 lety +2

    Thanks again Bro!

  • @justchap9202
    @justchap9202 Před 3 měsíci

    U dont understand how much i appreciate this

  • @TheMontemayor
    @TheMontemayor Před 7 měsíci

    thank you! this video help me a lot!

  • @hingsing1
    @hingsing1 Před 24 dny

    great video!

  • @simondn953
    @simondn953 Před 11 měsíci

    You are the Best thanks!

  • @wrt3778
    @wrt3778 Před 2 lety

    Cool bro, thanks.

  • @danielfolorunsho7113
    @danielfolorunsho7113 Před měsícem

    great stuff an, thanks

  • @nudtanunwarnnissorn
    @nudtanunwarnnissorn Před 5 měsíci

    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

  • @Ben-fn6wp
    @Ben-fn6wp Před rokem

    Nice vedio Bro!!!

  • @DanA-st2ed
    @DanA-st2ed Před rokem

    nice one bro

  • @MrEastgalaxy
    @MrEastgalaxy Před 9 měsíci +2

    GIGABRO!

  •  Před 3 lety

    Thanks Bro!

  • @pm.pereira69
    @pm.pereira69 Před 2 měsíci

    thanks bro i appreciate it

  • @Thalas5
    @Thalas5 Před 9 měsíci

    good explination thanks

  • @meoryo5642
    @meoryo5642 Před rokem

    U R Epic

  • @cabbiechuck
    @cabbiechuck Před rokem

    Love it! Random comment

  • @mthokozisimyende787
    @mthokozisimyende787 Před rokem

    Dankie Ngamla

  • @FullExtension1
    @FullExtension1 Před rokem

    You are such a bro, bro.

  • @k9man163
    @k9man163 Před 2 měsíci

    awesome

  • @kevind3946
    @kevind3946 Před 2 lety

    Thanks bro

  • @aarongarcia3296
    @aarongarcia3296 Před rokem

    Thank you

  • @antefavour1327
    @antefavour1327 Před rokem

    Thanks bro code

  • @saadblabla
    @saadblabla Před 2 lety

    Can't I just write the namespace and then directly after start with a function without a class ?

  • @budderrar5751
    @budderrar5751 Před rokem

    noice

  • @axlecode8598
    @axlecode8598 Před rokem

    👍

  • @wheresmydrink4552
    @wheresmydrink4552 Před rokem

    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

  • @ladefected4475
    @ladefected4475 Před 2 lety

    miss you bro. i am back :) from python

  • @MuhammadFarooq-jf3lo
    @MuhammadFarooq-jf3lo Před rokem

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

  • @liliasara4489
    @liliasara4489 Před 2 lety

    constrector ? object? thanks

  • @whitedinamo
    @whitedinamo Před 2 lety

    lesson check😇

  • @dvornicked
    @dvornicked Před 3 lety

    Let's get patterns in 15 minutes?

  • @thibeaultdemulder8422

    interaction

  • @pajkeav
    @pajkeav Před rokem

    random comment

  • @the_dude_josh
    @the_dude_josh Před 6 měsíci

    A random comment down below

  • @alejandrochacon6910
    @alejandrochacon6910 Před 10 měsíci

    down below

  • @simondn953
    @simondn953 Před 11 měsíci

    You are the Best thanks!

  • @jermainewithag
    @jermainewithag Před rokem

    Thanks bro