Constructors | C# | Tutorial 26

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

КОМЕНТАРІ • 113

  • @LH-to8bi
    @LH-to8bi 6 років тому +106

    Damn, am I glad I found this channel, best explanation I've seen of this so far, just like your personality too bro, watching your videos makes me calm and stops me from being stressed about not understanding these things right away.

  • @aniketyadav5024
    @aniketyadav5024 5 років тому +42

    After years of watching videos on UA-cam over the topic of Classes, Objects and Constructors, Finally found the best explanation on these topics in the form of this video series. Great Explanation!

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

      I 100% agree I've been in school learning code and this is the best explanation I've had

    • @bojohannesen4352
      @bojohannesen4352 7 місяців тому

      It took you years to learn what classes, objects and constructors are? Maybe coding is not for you.

  • @nyeman658
    @nyeman658 2 роки тому +7

    You really need to REALISE how life changing your content can be man, these are without any doubt the best C# tutorials out there.
    I really hope you continue with these, I would never take your tutorials for granted.

  • @ranjanadissanayaka5390
    @ranjanadissanayaka5390 11 місяців тому +1

    awsome Mike....you just cleared all the confusion I had with constructors

  • @angiepangieo
    @angiepangieo 2 роки тому +2

    I can't even begin to say how relieved I feel now, I FINALLY understand!! I am so thankful for teachers like you.

  • @ThatKidTony
    @ThatKidTony 5 років тому +14

    Just a word of advice for anyone that may run into the same issue that I did. The class and the program have to share the namespace or else visual studio will not allow you to call that class. It was not explained in the previous video and it took me a bit to understand why it would not allow me to use the class.

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

    this guy is just a natural teacher, explains so well, its crazy how I tried to learn this before but just todays thanks to him I understood, Thanks a million!!!

  • @heartagram_andreea
    @heartagram_andreea 4 роки тому +5

    What a great explanation - short and clear! I've been struggling to understand constructors for quite some time and now I can finally get what this is all about! Thank you!

  • @seccom_
    @seccom_ 6 місяців тому

    genuinely impressed that it doesn't have as many views and likes as it should have! these tutorials are amazing, you explain things very clearly (:

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

    Your the best programming teacher I have ever found and I’m in school.

  • @chizobaharmonyugwa9882
    @chizobaharmonyugwa9882 11 місяців тому

    Just starting out a career as a .net software developer and your vidoes are so helpful. Thank you, Mike.

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

    You are just the best man. I've been battling with a 6 hours of video on this topic without a solution. But you have given me the solution with just a few minutes of video. I love your videos...

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

    straight to the point! best C# tutorials on youtube! thanks a lot Mike!

  • @serageibraheem2386
    @serageibraheem2386 5 років тому +1

    Finally, I found a video with 0 dislike on UA-cam - U r the best always

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

    Brilliant! I've watched about four other 5 minuite vids on this subject and was still unable to not determine if / or why I might want / or need to use constructors. Your one video answered all my questions.

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

    By far, the best explanation for the Constructors.

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

    Great job brother, very interesting your tutorial either java, html, css or c#. thank's for your unpayable help.

  • @apsaranishendra1520
    @apsaranishendra1520 6 років тому +1

    Hi
    Mike Dane,
    You are a good teacher. I learn C# easily. Those are very very helpful videos. I requesting you more lessons about Constructors. Thank you so much !!!

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

    I am very happy I found your channel. I enjoy the way you present the material, thank you.

  • @aba22125
    @aba22125 3 роки тому +1

    Nice tutorial, it cleared up a lot of confusion I had. Also doing this.Title = Title; is much better, since you can use the same variable name in the constructor.

  • @AlexvandenBoogaard-i7l
    @AlexvandenBoogaard-i7l Рік тому

    Bro you're such a good teacher, keep it up

  • @musitappp
    @musitappp 6 років тому +9

    Thank you so much bro, you are a good teacher!

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

    OMG. I graduated in 1996, before all this OO stuff came out (for C#). I've actually been using C# for 5 years, all self taught on the job. I've been using Constructors all this time, but I didn't know it was called "Constructor!"

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

      That’s hilarious the le. Awesome stuff

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

      How is the C# journey going for you right now?

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

      @@shafialanower3820 programming is fine as long as I stick to basics, but in general I find that there are a lot of terrible c# programmers that make their code too complicated or they take too many shortcuts and so the code is hard to decipher. A lot of times the code only does one thing and is broken up into 3 classes and a dozen functions, when it can really be done in one block of code. It's like the people who over normalize their dB. C# allows for a lot of shit programming.

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

      @@thele99 interesting do you ever tell them hey this can be written much shorter. Are they beginners or mid to senior level devs

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

      @@shafialanower3820 No no... the problem is that they do things shorter, when there is no need to.
      int ss; //Social Secrurity
      ss = SS(); //function to retrieve Social Security
      REALLY? C# douchebags do that shit all the time. It's frustrating.
      Makes sense to the coder, sure, but not to the guy who inherits it. I see this kind of shit all the time. Add a couple lines and make this more readable, and stop abusing case sensitivity please. Stupid c# programmers.

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

    I kinda had to know what constructors were for several months for my class but never knew. Now I do!

  • @k-d699
    @k-d699 Рік тому +1

    Great Videos !! Still watching these things

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

    Thank you a lot for you talent to explain so well; I was trying to understand it from a teacher that can't explain, and in a different language that my native one...so your explanations was like a breath of air for me

  • @sayedhussaini1233
    @sayedhussaini1233 3 роки тому +1

    Thanks a lot for your videos, its all just great. Short, clear, and easy to understand. Keep it up!

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

    I was watching a tutorial about object oriented programming and I really didn't understand constructors much. Turns out it was not because I am stupid.. it was just badly explained and by watching this video I understood it easily. Thanks a lot!

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

    Love it! I would love examples that a little more advanced! Example working with inputs in windows forms or from a website

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

    Thank you for making a complicated subject easy to understand. Great videos and explanations!

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

    Great video! Simple, concise, easy to understand. You got yourself another subscriber here.

  • @pieicx
    @pieicx 5 років тому +1

    thank you so much for the video. You explain it so much better than my Prof.!!!! : -). Understood constructor now thanks to you ^^

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

    You are simply great Mike , the best on youtube

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

    This helps me understand unity api stuff better. Thank you.

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

    Very good videon on how constructors work. Mutch better then the text i read in programming in school :)

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

    Mike you are a Great Teacher Thank you for sharing your time knowledge and video's

  • @JJ-kx8gi
    @JJ-kx8gi Рік тому

    You make this so easy!!! Thank you 🥹

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

    Dude, this is so helpful! I'm in a C# class (of the school type ;-) ) and just this morning I was thinking about how I feel like I've been dropped like a newborn giraffe! Then I find Giraffe Academy! Thank you!

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

    Awesome video Mike.

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

    I always become excited to your tutorial. I understand very well

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

    everything is very easy with your videos

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

    My dude bussin, thank allot. Clean explanation!

  • @ranjanadissanayaka5390
    @ranjanadissanayaka5390 11 місяців тому +1

    Thank you so much.

  • @alielnajjar8501
    @alielnajjar8501 5 років тому +1

    How can i let the user input objects, for example the user wants to add a new book with all its objects from console, how?

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

    Great video as always, Mike!

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

    Can I use different name for constructor, like Booklet, so I'd do Book book1 = new Booklet(); ?? Otherwise I don't understand why Book is repeated on both sides.

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

    Awesome Explanation dude

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

    Your videos have greatly helped, Thank you :)

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

    Great explanation!

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

    Good and simple video, thank you.

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

    This makes SO MUCH MORE SENSE OMG. I'm taking the Treehouse C# course and... The explanation of most of the Object topics is... Lacking -. -

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

    This video helped me a lot, Thanks 🙏🏻

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

    Best c# tut ever!

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

    Very well explained! Thanjs

  • @jerrysiro2432
    @jerrysiro2432 5 років тому +1

    can you make any videos using windowforms and mysql connections

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

    instead of adding a writeline inside the constructor then putting a fix parameter in an object, how can i use readline then input the value?

  • @coco81828
    @coco81828 5 років тому +6

    “if you have any CONSTRUCTive criticism” :D

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

    Very nicely explained. Thank you.

  • @StefanKo1224
    @StefanKo1224 6 років тому +1

    You expalin good,thanks.It was helpfull for me

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

    Great tutorial.

  • @isaacl.quelemine8775
    @isaacl.quelemine8775 2 роки тому

    Very good guy👍

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

    Wondering if anyone knows what key-command he used at 8:08 to have only highlighted and copied one line- and then having it paste the other two.. am I missing something obvious here? I am taking a software development course in college and it is heavily based in .NET framework, C# in particular... but we have never been taught much about the shortcuts and finer points of VS

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

      He edited the video after filming it. It just cut off, not a command.

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

      @@mykolasd thank you haha. This was really bugging me as I use VS daily and couldn't understand what happened there.
      Appreciated!

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

    Killer, killer, killer stuff. Thanks.

  • @jayamalaraut273
    @jayamalaraut273 10 місяців тому

    Very helpful, thank you!!

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

    Hello Mike.
    I wanted to know how "this" keyword works. I dont understand where to use it. Every thing is simple when you explain. Thank you in advance.

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

    thank you very much
    Could you please make a video about
    "How to work with classes in a different file?"

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

    Great Video! you gained a sub

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

    thanks for the class.

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

    So are constructors to classes like properties are to variables? Sort of?

  • @2kglenn
    @2kglenn Рік тому

    7:13 why are someone writing :
    this.title = aTitle; ?

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

    What theme are you using?

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

    Hey, this comment will be very late. If you want the user to type their name of the book in the program(Console). How can I parse the titels, pages and author with Constructor? Sorry if this coming late.

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

    Very nice, thank you!

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

    Thaaaaaaaank you soooo much !! I finally understand

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

    the only tutorials I understand

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

    omg you deserve more views!

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

    do you have another t-shirt?

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

    After watching this video I now understand what sql is for.

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

    So the name of the constructor and the class have to be the same? In this case “book”

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

    is always the constructor name and the class name is same?

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

    Awesome

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

    Thank you : )

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

    Thanks brother.

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

    skipping uni lectures and going straight to this :)

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

    damn so simplified thanks

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

    I always prefer use "this" keyword

  • @Flaeren
    @Flaeren 4 роки тому +6

    "tolkein".
    great explanation tho, thanks man.

  • @sibisuruthit9622
    @sibisuruthit9622 7 місяців тому

    ❤👌🏼🤝🏻

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

    Still impressed..

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

    2 constructors with the same name In the same class? Are you sure?

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

    why the hackk you the only one who i can understand with

  • @countOfHenneberg
    @countOfHenneberg 4 місяці тому

    Spelling Tolkien hey ho!

  • @Blackoutfor10days
    @Blackoutfor10days 3 роки тому +1

    Bonk you 😡

  • @غصنالزيتون-ف7ز
    @غصنالزيتون-ف7ز 11 місяців тому

    Excessive talk is not the explanation and it is not the explanation
    You talk too much = losing the basic meaning