Static Methods & Classes | C# | Tutorial 30

Поділитися
Вставка
  • Опубліковано 8 січ 2025

КОМЕНТАРІ • 118

  • @littlecurrybread
    @littlecurrybread 4 роки тому +69

    the best explanation of static methods i've found so far!

    • @attilaguba856
      @attilaguba856 3 роки тому

      True! I agree!

    • @Dani-zy6cf
      @Dani-zy6cf Рік тому +1

      yes, I saw like 3 videos before this one, and this one was the only one I actually understood

    • @tayo5302
      @tayo5302 4 місяці тому +1

      Yep, I watched Bro code's video and he started using all this complicated lingo. Just get to the point!

  • @klimentpaskalev962
    @klimentpaskalev962 2 роки тому +3

    Really good video. Concise, short, explained in plain words with a good example. I've looked at several videos and blogs and they all make is so complicated. Thanks! I now get this 100%.

  • @allendzedzy8565
    @allendzedzy8565 6 років тому +22

    Super helpful video, I've been reading on the static modifier and was just getting bits and pieces of understanding. This really tied it all together for me!

  • @gymnastboy7736
    @gymnastboy7736 Рік тому

    only youtuber that actually explains how thing work. love it. if I don't understand what another youtuber is talking about I go to this channel and I would HIGHLY RECOMEND checking his vids out. absolutely incredible. he wants you to learn exactly that you need to know.

  • @raven.4815
    @raven.4815 2 роки тому

    You're a lifesaver, man!
    Tried to understand with this with other tutorials + Stack Overflow but nothing, but your video finally gave this topic sense!

  • @ВениславЗдравков
    @ВениславЗдравков 2 роки тому

    Best explanation ever. In the first minute, I understand what are they about. I was confused for so long about this topic...Then I found this!

  • @valenzsa418
    @valenzsa418 2 роки тому

    I have watched several videos on static methods and static classes and this video did it for me. It made it clear for me to understand how it works. Thank you! Liked and subscribed!

  • @KhalidAfridi1
    @KhalidAfridi1 5 років тому

    Really helpful and the way of explaining on screen behind and face to face teaching was awesome. thumbs up.

  • @SOMEONE-eq5bu
    @SOMEONE-eq5bu 2 роки тому

    thanks man, i forgot what what was Static Methods & Classes,
    had to came back for your excellent explanation

  • @shehzad2519
    @shehzad2519 3 роки тому

    bruh, I was searching the damn internet for this. I have OOP C# assignment re-subs and I need screenshots. Thankfully, now i can make my own because of your help. Keep up!

  • @ShadesGameSource
    @ShadesGameSource 4 роки тому +2

    Thank you so much for this, man. I just started learning C# a couple weeks ago, and your videos are super clear and easy to understand.
    I just checked your channel and I see you haven't uploaded in a while. That's cool.
    Hope you're doing well! Stay safe. =)

  • @SILX
    @SILX 3 роки тому

    mike just explains things in a simple way, i love it

  • @KashifAli-bb4bm
    @KashifAli-bb4bm 2 роки тому

    Explain in well comprehensive way.. Keep it up

  • @xaver115
    @xaver115 3 роки тому

    Thank you! 1 minute of this video was more helpful than 30 minutes of googling

  • @mohamadknifati5679
    @mohamadknifati5679 3 роки тому

    when ever i cant understand something, u r the guy to go to.

  • @pedropc5824
    @pedropc5824 4 роки тому +1

    Finally someone explain this to me in a easy way. Thanks!

  • @miltonsermoud3643
    @miltonsermoud3643 4 роки тому

    The best explanation I've ever seen about this topic. Thank you so much!

  • @paulihelsi9852
    @paulihelsi9852 4 роки тому

    You explain it very clearly. This was very easy to understand.

  • @longshi7635
    @longshi7635 3 роки тому

    Thank you for sharing. You explained it very clearly in few minutes! Amazing

  • @monkeyrobotsinc.9875
    @monkeyrobotsinc.9875 4 роки тому +1

    You are awesome. Great video.

  • @goverdhanjayaram3683
    @goverdhanjayaram3683 Рік тому

    Thank you very much! Excellent explanation!

  • @akashrajum3319
    @akashrajum3319 6 років тому

    This video deserves more views. Thanks.

  • @imadabab
    @imadabab 4 роки тому +1

    Perfect. Thanks a lot. I already subscribed long time ago.

  • @47Mortuus
    @47Mortuus 5 років тому +13

    Your tutorials are helpful.
    To me they feel like they're aimed both at absolute coding beginners aswell as coders who know other languages with you showing off some unique features about C# those people need tio know about to adapt their previously gained knowledge to C#.
    To me, though, I didn't get any kind of overview about Namespaces, Classes and Methods even after watching this series for the third time. It was only after I started reading literature, when I gained further insight, or BEGINNERS insight for the very first time - you know, some kind of overview. But I guess you're not aiming at replacing literature, although you very much would be able to, if you went ahead and covered a programming language "completely", but seeing you having like 30 different programming language tutorials makes that unlikely.

  • @krekk2751
    @krekk2751 4 роки тому

    amazing video, you're very much a likeable person! I will definitely watch all the videos to make things clear

  • @iamdeepshekhar
    @iamdeepshekhar 2 роки тому

    Beautifully explained. Thank you

  • @sajonezic8525
    @sajonezic8525 4 роки тому

    Excellent! Thank you very much for this lesson.

  • @facts247
    @facts247 6 років тому

    a simple but effective explanation, thank you very much

  • @imadabab
    @imadabab 5 років тому

    Very helpful video. Thanks a lot dear.

  • @chinedumgbedoro5362
    @chinedumgbedoro5362 2 роки тому

    Thanks for sharing. Very helpful

  • @yuwendridesilva6956
    @yuwendridesilva6956 3 роки тому

    Great explanation .Thank you

  • @vardhanvarma1007
    @vardhanvarma1007 4 роки тому

    Thank you so much. Cleared a lot of confusion.

  • @gregpert4202
    @gregpert4202 5 років тому +56

    I'm just laughing at having a project named Giraffe that just returns the Sqrt of 144

  • @dangerc3533
    @dangerc3533 4 роки тому

    Excellent and clear explanation, thank u

  • @tonyhuang364
    @tonyhuang364 4 роки тому

    Very helpful and easy to understand.

  • @Jwhite1979
    @Jwhite1979 3 роки тому

    Great explanation.

  • @thele99
    @thele99 4 роки тому

    This was great. For the life of me, I could not find a good website out there that could explain Static methods... but here we are and now I know. Question though -- is there any reason to create a PRIVATE STATIC method? I am not even sure it's legal to do so.

  • @richardikin
    @richardikin 3 роки тому

    I'm really getting to like C#. I have a lot of experience with Java, C and C++, and I'm learning C# by converting the Java game framework Libgdx.

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 5 років тому

    Very very interesting. Thank you very much.

  • @mohamedlaghzali5726
    @mohamedlaghzali5726 2 роки тому

    LMAAAAAAO MY TEACHER SPEND THE LAST 4 HOURS TRYING TO EXPLAIN THIS SIMPLE CONCEPT

  • @jeremylpt9276
    @jeremylpt9276 4 роки тому

    perfectly explained! thanks again!

  • @coolprem7445
    @coolprem7445 4 роки тому

    Really helpful👍

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 5 років тому

    SUPER DEMO SIR. THANK YOU..

  • @xavieracaling6866
    @xavieracaling6866 3 роки тому

    thanks exactly what i'm looking for.

  • @rhaindeathlcook
    @rhaindeathlcook 4 роки тому

    short but informative! thank you!!!

  • @narnbrez
    @narnbrez 4 роки тому

    It would have been great if you had shown the precise compiler error that 1:40 generates.

  • @educator5243
    @educator5243 3 роки тому

    Great vedio

  • @shohamtahelnavon530
    @shohamtahelnavon530 5 років тому +3

    thank you so much(: really helpful

  • @malmedia9747
    @malmedia9747 4 роки тому

    Thanks very very very much. Can you prepare video for abstract classes

  • @sijieren5955
    @sijieren5955 5 років тому

    This is super helpful! Thanks!

  • @mychannel470
    @mychannel470 5 років тому

    Great video, really helps!!!

  • @Steven-wo9bm
    @Steven-wo9bm 4 роки тому

    Bro you explain stuff so well i love it, new subscriber here. I wish you could be my mentor. Just starting out in the programming field.

  • @phucnguyenlx
    @phucnguyenlx 2 роки тому

    I am a bit confused as portrayed this way, the class is no different to method if I create a method directly in main();. Could you please advise?

  • @JayRGabz
    @JayRGabz 5 років тому

    nice simply understandable.. thanks

  • @mr.hgorgan1812
    @mr.hgorgan1812 2 роки тому

    Beginner question: why would we ever write non-static methods then? Seems easier to just call the static method directly rather than creating class objects and then call the class method.

  • @vima9046
    @vima9046 3 роки тому

    Im italian, i was looking tons of italian videos how to use static method but nobody has a fucking answer...cannot find anything in a simple way! And u man, u enlightened me in just "6" fucking minutes! Thanks man! Need to study english.

  • @thebulletkin8393
    @thebulletkin8393 2 роки тому

    You can’t have fields or variables in a static class can you?
    I need to make one instance of a class, but change it’s variables as the program runs, but I’m having trouble doing that

  • @Pilgrim182
    @Pilgrim182 3 роки тому

    Helpful as hell.

  • @teseract7442
    @teseract7442 2 роки тому

    I love statics methods

  • @kolawoleadekunle5364
    @kolawoleadekunle5364 6 років тому

    Many Thanks Mike...

  • @darkman237
    @darkman237 5 років тому

    What if you have a function that starts a coroutine and you want to be able to access it from anywhere? Does the ienumerator need to be static also?

  • @stuteerath4562
    @stuteerath4562 2 роки тому

    can u please make a video on methods being called inside methods like -----> method_name(method_name(arg1,arg2),arg3,arg4)) I have seen it somewhere but cud not understand it 😐.

  • @programmingjo
    @programmingjo 4 роки тому

    So, you can create a static class within a namespace, and that will be available to every other class inside of the namespace, right?

    • @programmingjo
      @programmingjo 4 роки тому

      But not available to another class in another namespace, right?(I know, sounds like a stupid question, but I have to ask)

  • @rengoku81xx
    @rengoku81xx 2 роки тому

    Thank you! You rock!

  • @rolstonholas333
    @rolstonholas333 4 роки тому

    Hi Mike, thank you so much for these videos, I have enjoyed them and learned a lot but I do have one question if I may. I was watching a video on new features in C# 6.0 and mentioned the using static feature ie using static System.Console; to load the static methods of this class but I have noticed that I cannot use this for custom classes as I do not know what namespace they occupy. Do you know if this feature is available for custom classes and, if so, do you know what namespace custom classes occupy? Thank you for the videos series, I'm currently going through your OOP series and enjoying it too.

  • @FlipMather
    @FlipMather 5 років тому

    Thank you, you explained it so well

  • @thatguyty96
    @thatguyty96 Рік тому

    thanks Mike!

  • @oltomcat2106
    @oltomcat2106 3 роки тому

    Hi there👋
    Me have a severe probem in understanding the keyword 'static'. Although I understand, what that video teached me, there are a lot of question marks in my head 🙃
    It's unclear (for me), for what 'static' should be used and for what not? Why not using 'static' everywhere?

  • @dedankimathi7136
    @dedankimathi7136 2 роки тому

    Hi Mike. Great explanation. Do u have a way we can contact you for further specific questions?

  • @stbny4444
    @stbny4444 5 років тому

    static classes seem to remove the step of creating instances. So why not make all classes static?

  • @jared394
    @jared394 6 років тому

    Why use public static? At the beginning of the video you use static void. Thanks!

  • @erekmandah44
    @erekmandah44 4 роки тому

    the question is if static class is working so well then what is the point of using objects

  • @achalasamapriya2701
    @achalasamapriya2701 4 роки тому

    Hai..i am new here.awesome tutorials..by the way whats up with the giraffe ??

  • @KonradSchK
    @KonradSchK 4 роки тому

    awesome shit. very informative

  • @VEKTOR_87
    @VEKTOR_87 2 роки тому

    Thank you so much

  • @fedvgo
    @fedvgo 2 роки тому

    love your vids

  • @oyoyo2853
    @oyoyo2853 2 роки тому

    ty, well done

  • @bajjary
    @bajjary 6 років тому

    it helped me, thanx

  • @nitro-ww6sk
    @nitro-ww6sk 5 років тому

    thank you. the best

  • @grunt7882
    @grunt7882 5 років тому

    Thanks a lot!

  • @GBSCronoo
    @GBSCronoo 6 років тому

    Thank you this helped a lot ^_^

  • @DodevdoneOfficial
    @DodevdoneOfficial 6 років тому +3

    it was really helpful

  • @neozoid7009
    @neozoid7009 3 роки тому

    how you learnd coding????

  • @hanjarake_taro
    @hanjarake_taro 2 роки тому

    I just make all the class and methods as static. All solved!

  • @judsonfilms6430
    @judsonfilms6430 4 роки тому

    cheers boss

  • @neozoid7009
    @neozoid7009 3 роки тому

    awesome

  • @mmaranta785
    @mmaranta785 2 роки тому

    Great!

  • @adrianstan9082
    @adrianstan9082 2 роки тому

    So if there are that easy to use and "useful" why not always use static methods? Like isn't creating new objects taking more memory?

  • @ArjunSingh-qt5jn
    @ArjunSingh-qt5jn 3 роки тому

    also final class cannot have instance.

  • @thuanphatcao6969
    @thuanphatcao6969 4 роки тому +1

    Damn the knee Lol XD

  • @russiangravy3870
    @russiangravy3870 4 роки тому

    Why should I ever instance a class if I can write all static functions?

    • @ichimori88
      @ichimori88 4 роки тому

      exactly... One reason I can think of is the developer may want different instance of the class? I dont know if that's right. Hope someone will clear the air for us.

  • @Holmes-it7fo
    @Holmes-it7fo 4 роки тому

    when i type the static method it gives me an error telling me that i have to get c# 8.0 please help!!

  • @DecentProgrammer
    @DecentProgrammer 4 роки тому

    you go very fast.

  • @seifvergil
    @seifvergil 6 років тому

    thanks!

  • @couch_coach
    @couch_coach 2 роки тому

    I like your namespace lol

  • @canaldopericles2167
    @canaldopericles2167 3 роки тому

    great

  • @anjujose446
    @anjujose446 6 років тому

    liked it :)

  • @edgarjuniormendoza2743
    @edgarjuniormendoza2743 4 роки тому

    Hi Vlogger , Hope you notice me , ♥️♥️♥️🌈

  • @HorseyWorsey
    @HorseyWorsey 4 роки тому

    Godlike

  • @leenelias4322
    @leenelias4322 4 роки тому

    thank uuuuuuuu