Part 20 - C# Tutorial - Static and instance class members.avi

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

Комментарии • 241

  • @kakhitv587
    @kakhitv587 8 лет назад +47

    thanks for good example. you always make good examples. love your videos

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  8 лет назад +2

      +david D Thanks a lot for taking time to give the feedback. Appreciate it. So glad you found the videos useful.
      The following link has all the Dot Net & SQL Server playlists, which could be useful to you
      ruclips.net/user/kudvenkatplaylists?view=1&sort=dd
      If you want DVDs or to download all the videos for offline viewing please visit
      www.pragimtech.com/kudvenkat_dvd.aspx
      Slides & Text Version of the videos can be found on my blog
      csharp-video-tutorials.blogspot.com
      Tips to effectively use my youtube channel.
      ruclips.net/video/y780MwhY70s/видео.html
      If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.
      ruclips.net/user/kudvenkat
      If you like these videos, please click on the THUMBS UP button below the video.
      May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them.
      Good Luck
      Venkat

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 лет назад +9

    Hi, Thank you very much for taking time to give feedback. I think the microphone that I used was bad. Sorry about that. I will try to rerecord these as soon as I can. ASP.NET, SQL Server, ADO.NET, GridView and MVC tutorial series should be fine. In the description of this video, I have included the link for ASP .NET, C#, and SQL Server playlists. All the videos are arranged in logical sequence in these playlists, which could be useful to you.

    • @tisurmaster
      @tisurmaster 4 года назад

      So shouldn't most functions or methods be static because all they mostly do is process or do things, right? When is it best to create static method?

  • @dessguy7199
    @dessguy7199 7 лет назад +10

    Oh my god. This tutorial finally opened my eyes.
    I've been looking for the answers about static/non-static cases everywhere without any luck for months.
    All it took for you to clear all up is a 20 minute video.
    Thank you!

  • @afcConnor8
    @afcConnor8 10 лет назад +10

    A few teachers at my collage couldn't explain 'static and instance class members' as well and clear as you have done in detail. Thank you so much. I greatly appreciate it.
    When looking up things in C# on some websites they give a complex explanation and example. Whereas you make it simple with your explanation and example.

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 лет назад +3

    Thank you very much for taking time to give feedback. In the description of this video, I have included the link for ASP .NET, C#, and SQL Server playlists. All the videos are arranged in logical sequence in these playlists, which could be useful to you. Please share the link with your friends who you think would also benefit from them. If you like these videos, please click on the THUMBS UP button below the video. For email alerts, when new videos are uploaded, you may subscribe to my channel.

  • @devmackoy
    @devmackoy 3 года назад +4

    I have been programming for several years and this makes sense of everything in terms of OOP. I can now understand and make my classes' methods and use it on another classes properly!

  • @kateredas4951
    @kateredas4951 10 лет назад +22

    You are my unofficial instructor. I have learned everything from you.

    • @MANISH2634
      @MANISH2634 10 лет назад +2

      he is our saviour imo :P

    • @Dotto19
      @Dotto19 5 лет назад +2

      Me too. Thank you Venkat

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 лет назад +1

    Thank you very much for taking time to give feedback. For email alerts, when new videos are uploaded, please subscribe to my channel. In the description of this video, I have included the link for ASP .NET, C#, and SQL Server playlists. All the videos are arranged in logical sequence in these playlists, which could be useful to you. Please share the link with your friends who you think would also benefit from them. If you like these videos, please click on the THUMBS UP button below the video.

  • @rsethura
    @rsethura 9 лет назад +11

    Awesome tutorial. one extra thing to add is also that Static Constructors cannot have parameters. Makes sense, because no instance object can call a static constructor and it is automatically invoked, it cant take parameters and that also means static constructors cannot be overloaded. just a tid bit.

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 лет назад +2

    Hi Charles, Thank you very much for taking time to give feedback. Sure, please feel free to mention this in your series, and thanks for that. :-)

  • @suryanarayanareddyg1413
    @suryanarayanareddyg1413 4 года назад +1

    I have been working in IT field since 2000 and never seen this kind of detailed explanation. Kudos.

  • @ForsakePariah
    @ForsakePariah 4 года назад +7

    Still a fantastic explanation in 2020. I've probably watched 50 of your videos over the years and I've always been impressed with how clear your explanations are. Keep up the good work!

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  4 года назад +2

      Hello Justin - Thank you very much for the feedback. Means a lot. I have included all the C# tutorial videos, slides and text articles in sequence on the following page. Hope you will find it handy.
      www.pragimtech.com/courses/c-sharp-tutorial-for-beginners/
      When you have some time, can you please leave your rating and valuable feedback on the REVIEWS tab. It really helps us. Thank you. Good luck and all the very best with everything you are doing.

    • @drjcreation6502
      @drjcreation6502 Год назад

      even in 2023 too

    • @shafialanower3820
      @shafialanower3820 Год назад

      @@drjcreation6502is it still relevant enough in 2023 to learn ?

    • @drjcreation6502
      @drjcreation6502 Год назад

      @@shafialanower3820 yeah it is go for it. nobody will teach you c# better than kudvenkat.

  • @spacecoffeeco
    @spacecoffeeco 8 лет назад +6

    I am 17 and trying to learn programming, and this has made my life so much easier. Only on tutorial 20 and i have learned so much, Thanks a lot Man. I really love your videos

    • @jayponkia5045
      @jayponkia5045 2 года назад +1

      Now you are 23 as this comment is 5 years old

    • @spacecoffeeco
      @spacecoffeeco 2 года назад +2

      @@jayponkia5045 Yeah, funny how it works! I can remember the exact moment in time when I wrote that. Somehow along the way I got out of coding, but I am a business owner and doing pretty well. I was just thinking today about getting back into it, I guess I’ll take this as a sign 😎. Thanks friend!

  • @mohammadaqeel2841
    @mohammadaqeel2841 7 лет назад +2

    Venkat Sir, I've no words to praise your way of Teaching. Such an extraordinary explanation. Thanks a lot Sir..

  • @ForsakePariah
    @ForsakePariah 4 года назад +1

    Venkat, your videos are usually so clear. I've literally been watching them for years. This video is fantastic EXCEPT the audio makes it hard to follow. This would change this video from gold to platinum.

  • @Arun.Shan.
    @Arun.Shan. 9 лет назад +13

    Thank you so much my college teachers are not even near to how clearly you demonstrate these tutorials for us you saved my ass!

  • @dsquareboi
    @dsquareboi 6 лет назад +4

    Its been an year upto this day that I have finally understood "static". Thank you so much! Love your explanations :)

  • @mohamedkunle528
    @mohamedkunle528 3 года назад +2

    i cant thank u enough my friend even after almost 8 years still u are phenomenal damn man i love even my broken english i can understand you so keep the good work you are great teacher thank u so much venkat.

  • @SM-vq1qd
    @SM-vq1qd 7 лет назад +1

    I have to learn Java so I am using your C# Tutorial to learn the concepts and applying towards Java. I have been trying to get the concepts clearly from books but your tutorials are helping me to understand everything clearly!.
    thank you so much for your tutorials!

  • @MichaelBernardo
    @MichaelBernardo 7 лет назад +4

    Excellent pacing, consistent use of terms, great explanation of concepts through examples without dumbing it down too much and with proof.

  • @allpeople2010
    @allpeople2010 10 лет назад

    The last example about how static constructors are called only once and instance constructors are called as many times as instatnts is AWESOME ! No words to thank you !! I'm currently enrolled in an associate degree for programming an non of my teachers covered any of these important details.Again ,there are no words to thank you !You are amazing :)))

  • @mohdotnet
    @mohdotnet 7 лет назад +4

    I wish I came across your videos sooner. Thanks a mill for teaching me programming.
    I can now sit with more confidence in an interview . You offer awesome explanations to the theory of C#

  • @sbmahapatra
    @sbmahapatra 3 года назад +3

    VenkatJi, We will not be able to find a Tutor like you even if we pay for it. In other words, you are the best. Thank you!

  • @mezzanine510
    @mezzanine510 7 лет назад +1

    I've been trying to wrap my head around this concept for so long now. Your explanation about how it works in memory really brought it home for me, clear and simple, thank you!

  • @semirmahovkic8985
    @semirmahovkic8985 10 лет назад +10

    This is what i call clean and good explanation about static and instance class members.
    Overall, great series so far!

  • @momosh59
    @momosh59 3 года назад

    The best and most clear definition and explanation of static identifier I have ever seen.

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 лет назад

    Hi Nikhil, you are 100% correct, you can access them without having to use the class name. However, I personally prefer using the class name as the code is more readable.

  • @late30gamestudio20
    @late30gamestudio20 3 года назад

    Most clean and efficient yet broad explanation about C# I've ever encountered in RUclips.Nicely done brother!

  • @ranjeeth8
    @ranjeeth8 10 лет назад +1

    ThanQ for your wonderful tutorials Venkat. Any intimidating programing concepts can be understood with the way you teach. Appreciate your efforts!

  • @W-UProductions
    @W-UProductions 6 лет назад +1

    you are the best teacher of c# in internet
    love from Pakistan

  • @Touhmonglor
    @Touhmonglor 7 лет назад +2

    This is great kudvenkat! All your videos are helpful.

  • @jatinkashwani7144
    @jatinkashwani7144 5 лет назад +1

    Hats off to u, bcz of u so many people got job in IT industry !!

  • @rethanvit
    @rethanvit 7 лет назад +1

    Great example to understand the usage of word static. Thanks Mr.Venkat

  • @azantonsaz
    @azantonsaz 11 лет назад +4

    The most understandable tutorial ever! Thanks, greetings from Latvia!

  • @orionmec
    @orionmec 3 года назад

    Venkat, Thank you... I have been a coder for some time but have not used classes much so I started learning OOP and watched some videos... You explain this so much better! :)

  • @feminist098
    @feminist098 7 лет назад +1

    Its very rare that someones videos on you tube not only gets like but also the precious comments from viewers. Only by reading comments anyone can trust you.
    I know you are from silicon valley of India.

  • @NillerVision
    @NillerVision 10 лет назад +3

    I can not thank you enough for these fantastic tutorials sir. Your work has really helped me so much. Thanks again.

  • @kekistaniattackhelicopter2242
    @kekistaniattackhelicopter2242 8 лет назад +1

    It's so satisfying when you write code ahead utilizing what you learned in earlier videos

  • @sjohn0105
    @sjohn0105 10 лет назад +1

    Thank you so much Sir Venkat for providing such a valuable resource without any cost.These tutorials helped me a lot....!! Thanks for sharing your Knowledge...:)

  • @m3skine
    @m3skine 11 лет назад +2

    Well , I appreciate your effort to give free and full courses in C# , well explained and prestented. Thank you again

  • @ducchibui
    @ducchibui 10 лет назад +2

    These videos are easy to understand and help me a lot. Thanks so much Venkat.

  • @balqeeskhan9413
    @balqeeskhan9413 8 лет назад +1

    Great u r one of the king of c#.!!!!!!!

  • @amitagrawal3162
    @amitagrawal3162 10 лет назад +2

    Thanks you very much for the tutorials. I love the content, the way you explain and patience you show in explaining.

  • @rajmishra6769
    @rajmishra6769 5 лет назад +2

    Thank u for another another superb video.I regret that I was not able to find your channel sooner, it would have been useful in my college times.
    Keep doing the good work.

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 лет назад +1

      You are very welcome and Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful. Here is the link to our complete c# course playlist.
      ruclips.net/p/PLAC325451207E3105

    • @Gamez4eveR
      @Gamez4eveR 5 лет назад

      just remember to use proper naming convention!

  • @rfoxley
    @rfoxley 4 месяца назад

    Thank you for your wonderful videos. You are a brilliant teacher and make hard things easy.

  • @abhimanyumishra4276
    @abhimanyumishra4276 11 лет назад

    Thanks Million times Sir.. You are a life save to me. My programming skills are improving day by day after watching your great tutorials. God bless you.

  • @adilshehzad4209
    @adilshehzad4209 8 лет назад +9

    You are the best.............

  • @gcjacob
    @gcjacob 2 года назад

    You're a very good teacher, man.
    Thank you very much and congratulations for your work from Brazil

  • @rushabhjhaveri
    @rushabhjhaveri 9 лет назад +1

    Thanks a lot for these videos. One suggestion. At the end of session, it is good to give some home work to create code. For example in this tutorial, code to calculate simple interest for given years and amount.

  • @SurendraTarai
    @SurendraTarai 6 лет назад

    many many thanks for your video, really i cleared my doubts on static vs non-static. after i watched this video completely, I faced 2 confusion which has not mentioned in this video and i got clear after exercise on my machine. So, i want to share those here.
    Static constructor will invoke only & only once in 3 cases
    1. when an instance of that class will create
    2. Any static member of that class will use in outside of class.
    3. If static constructor is declared inside a class which contain Main(), then also it will call.
    Static constructor have no access modifier and it does not allow any parameter.

  • @veronicagiannin
    @veronicagiannin 9 лет назад +1

    Thank you so much for your help !!!! you are really good in what you do!
    I'm looking forward to watch more of your tutorials till now i have learn more from you than from my teachers hahaha crazy right ! keep up!

  • @monikagoud9140
    @monikagoud9140 Год назад

    Hi Sir, you are gifting us a beautiful future by sharing your knowledge in an excellent manner and i'm very much thankfull to you.😊Feeling blessed.

  • @caothanhlong7577
    @caothanhlong7577 6 лет назад +1

    Thank you very much for such great tutorial. It helps me a lot.

  • @pranjalmadheshiya
    @pranjalmadheshiya 7 лет назад +1

    Hello Venkat sir, this video makes most of my doubts clear. But what is significance of static class & static methods in C# ? What is the benefits and restrictions of using static class and static methods ? Can you please record a video on this as well ?

  • @georgevendras5450
    @georgevendras5450 4 года назад

    I think that this has been a really good explanation (independently of other youtube tutors etc)

  • @ferrad1
    @ferrad1 6 лет назад

    Very very very useful video !!! It is actually the same example from a book im learnin c# on but this part was not so clear for me and now you just clarified it all for me !! so thank you so much SIR !!

  • @siddzful
    @siddzful 9 лет назад +10

    best tutorials so far fr c#

    • @mrey845
      @mrey845 9 лет назад +8

      +"SIDD" .................... This is more than just a C# tutorial, it's a programming course. He takes the time to explain the topics from a conceptual perspective rather than just giving a recipe on how to do things. That's why I like these lessons. Keep up the good work Venkat.

  • @secretlives2734
    @secretlives2734 8 лет назад +3

    thank you sir for spreading your knowledge ...

  • @TheMarketTimer
    @TheMarketTimer 12 лет назад +2

    Well done on this tutorial. I learned a lot! Thanks.

  • @ojnelson8729
    @ojnelson8729 6 лет назад

    Great class here..... your a great communicator ....... way to go.... on the refresher........ brilliant

  • @drezcovers1113
    @drezcovers1113 8 лет назад +1

    mind-boggling, thanks a lot venky

  • @janavax
    @janavax 7 лет назад +1

    I have just to thank you for this fenomenal collaboration to people self enrichment. Have I question. To call a static method we to reference to the class name and no to the name of a instance of a class and that makes clear sense. So what happened if a static method refenreces a instance member?

  • @kommolafe
    @kommolafe 11 лет назад

    Thank you so much for these videos!!!!!! They are helpful and solutions to many problems beginners face in programming! Please keep it up! Thanks

  • @seanshimon
    @seanshimon 9 лет назад +2

    This is very useful. you are a great teacher.

  • @BalajiSathyaMoorthyconnect
    @BalajiSathyaMoorthyconnect 8 лет назад +1

    love u sir this is very much helpful to attend any interview also awesme explanation ur the best in the utube world for dot net....

  • @joerivde
    @joerivde 9 лет назад +7

    What's the benefit of having static constructors when you can assign a value directly to a static property of the class?
    Like this:
    static number()
    {
    number.nr = 1;
    )
    VS
    static int nr = 1;

    • @harald921
      @harald921 8 лет назад

      +Joeri Van den Eynden I was wondering the same thing. It seems like static constructors aren't even needed. Perhaps in this case, they arent - but they could be used to set static objects? I am not sure.

    • @NightmareKid_VR
      @NightmareKid_VR 8 лет назад +1

      +Joeri Van den Eynden What if instead of initializing a static property yourself you want the user to be able to initialize it? IE, someone's name.

    • @rajuspi
      @rajuspi 8 лет назад

      +Daniel Fischer how would an user initialize by Static constructor where you can't return?

  • @harmanpreetsingh4423
    @harmanpreetsingh4423 6 лет назад

    You are a star....best instructor.

  • @Fonten84
    @Fonten84 9 лет назад +2

    Great tutorials, keep up the good job.
    Thanks! :)

  • @mustafaabbas2520
    @mustafaabbas2520 10 лет назад

    perfect teacher in this field really

  • @arunmandal7021
    @arunmandal7021 3 года назад

    Best C# tutorials. Keep it up !!

  • @shashankivy
    @shashankivy 7 лет назад

    the explanation and understanding of subject is great. The only disappoint thing is pitch and volume changes which make it bit discomfort to listen

  • @amanullahaman8750
    @amanullahaman8750 7 лет назад

    Thank you sir.... After long time , now i clear about this part....

  • @TrungNguyen-vt1nc
    @TrungNguyen-vt1nc 5 лет назад

    One more great video Venkat. Thank you soooo much for your explaination. But if possible, please make the sound higher(I am using maximum volume but still not enough)

  • @ashutoshverma1151
    @ashutoshverma1151 5 лет назад

    appreciate your efforts for providing lessons in such details

  • @sweetsazd11
    @sweetsazd11 7 лет назад +1

    This is really helpful! Thank you for sharing :)

  • @gksjithv
    @gksjithv 7 лет назад

    Oxford Dictionary
    Teacher means Venkat
    Oh My God, you are great
    Thank you

  • @cyb3r1
    @cyb3r1 3 года назад

    Thanks, excellent tutorials as usual

  • @bobblack5495
    @bobblack5495 11 лет назад +1

    Thank you for videos, dude!

  • @rolstonholas333
    @rolstonholas333 4 года назад

    Hi Pragim, 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.

  • @yateeshmoger3837
    @yateeshmoger3837 2 года назад +1

    Thank u sir such a great explanation

  • @saptakdas86
    @saptakdas86 6 лет назад +3

    It is not a necessity to write Circle.PI, only PI works just fine. If the static variable is in the same class, using name of the class is optional

  • @Krish_1222
    @Krish_1222 3 года назад +1

    If it was not Kud Venkat, then who will teach us all these things!

  • @charlesanderson3641
    @charlesanderson3641 11 лет назад

    @kudvenkat
    I love the elegance of your presentation. I am definitely going to utilize the information in my video game creation. I would love to acknowledge this series in the entertainment side of my series. May I?

  • @PriyankaYadav-ff4xz
    @PriyankaYadav-ff4xz 7 лет назад

    Thank you Soo.. much Sir..your videos are awesome!

  • @Donder1337
    @Donder1337 9 лет назад +1

    Nice tutorial! Thx alot!

  • @asifahmedsourav6355
    @asifahmedsourav6355 8 лет назад +2

    clear idea. clear understanding.

  • @williamhayslett9089
    @williamhayslett9089 10 лет назад

    Hi, Venkat or any other c# gurus out there. Is there any specific benefit to utilizing a static constructor to initialize a static field vs. initializing that field using the assignment operator? Just setting the field to its value is certainly less arduous and is readable (to me at least). Any feedback is much appreciated.

  • @muhammadhassan3058
    @muhammadhassan3058 3 года назад

    thanks best of the best video miraculous explanation

  • @Tall-Cool-Drink
    @Tall-Cool-Drink 3 года назад

    Thank you. Another good video.

  • @MrGeniusprime
    @MrGeniusprime 11 лет назад

    Great tutorial. The audio fades in an out. I am not sure if its simply on my end since no one else have mention it but it made certain parts a bit tricky to understand as the audio fluctuates. Regardless great job.

  • @mohammedshafiuddin8956
    @mohammedshafiuddin8956 5 лет назад

    I tried to implement the static method and non-static method by watching this video when I implement the keyword "this" for the non-static or static method I don't see the impact of the "static" keyword as explained in this video. I used the online editor repl.it . The editor should not matter, maybe the IDEs got smarter. Can anyone else please try this and let me know if you
    have the same issue. I thank and appreciate Venkat for his hard work.

  • @priyankatripathi562
    @priyankatripathi562 8 лет назад +1

    Very nice explained Video...:)

  • @aliasghar09
    @aliasghar09 4 года назад +1

    Hi, so can I say when something is constant, we can make that as static in a class?

  • @LA-dm6kj
    @LA-dm6kj 8 месяцев назад

    Thank you for explaining Sir!

  • @renupampana5691
    @renupampana5691 11 лет назад +1

    A static method can access only static data that means we can not use non static variables in a static method.
    *if we want to use non static variables ,then we have to create a object of that class and then use.

  • @B18cCivic
    @B18cCivic 7 лет назад

    I thought the *sigh* you made at 15:23 was funny lol. Amazing tutorials by the way!

  • @riurock2466
    @riurock2466 8 лет назад +1

    static member is just to initialize the data member value..
    so instead of creating static constructor we can directly assign value like static float p=3.14f
    can we do this..??

  • @cesarsc971
    @cesarsc971 11 лет назад +1

    Amazing. Thanks, thanks a lot

  • @piyasidey2117
    @piyasidey2117 6 лет назад

    have no words to thank you sir.

  • @dineshsrivastava4508
    @dineshsrivastava4508 4 года назад

    Thank you so much for this tutorial sir .