Constructors | C# | Tutorial 26

  Рет қаралды 85,251

Giraffe Academy

Giraffe Academy

6 жыл бұрын

Source Code - www.giraffeacademy.com/program... This video is one in a series of videos where we'll be looking at programming in C#. The course is designed for new programmers, and will introduce common programming topics using the C# language.
Throughout the course we'll be looking at various topics including variables, arrays, getting user input, loops, conditionals, object orientation and much more.

Пікірлер: 112
@LH-to8bi
@LH-to8bi 5 жыл бұрын
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.
@anchalsharma5921
@anchalsharma5921 4 жыл бұрын
Same here
@monkeyrobotsinc.9875
@monkeyrobotsinc.9875 4 жыл бұрын
No joke. This guys incredible!
@achrafelassali2511
@achrafelassali2511 2 жыл бұрын
FR BRO
@aniketyadav5024
@aniketyadav5024 4 жыл бұрын
After years of watching videos on KZbin 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 Ай бұрын
It took you years to learn what classes, objects and constructors are? Maybe coding is not for you.
@nyeman658
@nyeman658 Жыл бұрын
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.
@ThatKidTony
@ThatKidTony 4 жыл бұрын
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.
@heartagram_andreea
@heartagram_andreea 3 жыл бұрын
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!
@ranjanadissanayaka5390
@ranjanadissanayaka5390 6 ай бұрын
awsome Mike....you just cleared all the confusion I had with constructors
@angiepangieo
@angiepangieo 2 жыл бұрын
I can't even begin to say how relieved I feel now, I FINALLY understand!! I am so thankful for teachers like you.
@ronaldjohnson4470
@ronaldjohnson4470 6 жыл бұрын
I am very happy I found your channel. I enjoy the way you present the material, thank you.
@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...
@seccom_
@seccom_ 22 күн бұрын
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 (:
@goosefx5435
@goosefx5435 5 жыл бұрын
straight to the point! best C# tutorials on youtube! thanks a lot Mike!
@mattj7265
@mattj7265 5 жыл бұрын
Yep!
@jjb5142
@jjb5142 5 жыл бұрын
Great job brother, very interesting your tutorial either java, html, css or c#. thank's for your unpayable help.
@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.
@brentarthur721
@brentarthur721 4 жыл бұрын
Great video! Simple, concise, easy to understand. You got yourself another subscriber here.
@chizobaharmonyugwa9882
@chizobaharmonyugwa9882 5 ай бұрын
Just starting out a career as a .net software developer and your vidoes are so helpful. Thank you, Mike.
@diegoarivera35
@diegoarivera35 8 ай бұрын
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!!!
@askl33
@askl33 3 жыл бұрын
Thank you for making a complicated subject easy to understand. Great videos and explanations!
@thele99
@thele99 3 жыл бұрын
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 Жыл бұрын
That’s hilarious the le. Awesome stuff
@shafialanower3820
@shafialanower3820 8 ай бұрын
How is the C# journey going for you right now?
@thele99
@thele99 8 ай бұрын
@@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 8 ай бұрын
@@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 8 ай бұрын
@@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.
@apsaranishendra1520
@apsaranishendra1520 5 жыл бұрын
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 !!!
@sayedhussaini1233
@sayedhussaini1233 2 жыл бұрын
Thanks a lot for your videos, its all just great. Short, clear, and easy to understand. Keep it up!
@musitappp
@musitappp 5 жыл бұрын
Thank you so much bro, you are a good teacher!
@serageibraheem2386
@serageibraheem2386 4 жыл бұрын
Finally, I found a video with 0 dislike on KZbin - U r the best always
@timupton3628
@timupton3628 2 жыл бұрын
Your the best programming teacher I have ever found and I’m in school.
@k-d699
@k-d699 11 ай бұрын
Great Videos !! Still watching these things
@scottisitt
@scottisitt 4 жыл бұрын
Great video as always, Mike!
@andreivictorbugnaru3579
@andreivictorbugnaru3579 Жыл бұрын
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
@aba22125
@aba22125 2 жыл бұрын
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.
@basepoint987
@basepoint987 4 жыл бұрын
You are simply great Mike , the best on youtube
@sauravshrestha1890
@sauravshrestha1890 2 жыл бұрын
By far, the best explanation for the Constructors.
@RonTDC
@RonTDC 3 жыл бұрын
I kinda had to know what constructors were for several months for my class but never knew. Now I do!
@malmedia9747
@malmedia9747 4 жыл бұрын
I always become excited to your tutorial. I understand very well
@bshwjt
@bshwjt 2 жыл бұрын
Awesome video Mike.
@tariqashraf7575
@tariqashraf7575 3 жыл бұрын
Mike you are a Great Teacher Thank you for sharing your time knowledge and video's
@monkeyrobotsinc.9875
@monkeyrobotsinc.9875 4 жыл бұрын
This helps me understand unity api stuff better. Thank you.
@JJ-kx8gi
@JJ-kx8gi Жыл бұрын
You make this so easy!!! Thank you 🥹
@mmaranta785
@mmaranta785 Жыл бұрын
Great explanation!
@oscarthroedsson1410
@oscarthroedsson1410 Жыл бұрын
Love it! I would love examples that a little more advanced! Example working with inputs in windows forms or from a website
@user-te3qp2xc1n
@user-te3qp2xc1n 11 ай бұрын
Bro you're such a good teacher, keep it up
@Pindatje456
@Pindatje456 2 жыл бұрын
My dude bussin, thank allot. Clean explanation!
@pembatamang7539
@pembatamang7539 2 жыл бұрын
Your videos have greatly helped, Thank you :)
@srinivasaraoyp3640
@srinivasaraoyp3640 5 жыл бұрын
Very nicely explained. Thank you.
@gameshub9458
@gameshub9458 3 жыл бұрын
Awesome Explanation dude
@pieicx
@pieicx 4 жыл бұрын
thank you so much for the video. You explain it so much better than my Prof.!!!! : -). Understood constructor now thanks to you ^^
@reenyindiego5584
@reenyindiego5584 Жыл бұрын
Good and simple video, thank you.
@DanneManne88
@DanneManne88 3 жыл бұрын
Very good videon on how constructors work. Mutch better then the text i read in programming in school :)
@zainab225
@zainab225 3 жыл бұрын
Best c# tut ever!
@Unknown-ki8yk
@Unknown-ki8yk Жыл бұрын
amazing explanation.
@lipejdc
@lipejdc 2 жыл бұрын
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!
@StefanKo1224
@StefanKo1224 6 жыл бұрын
You expalin good,thanks.It was helpfull for me
@user-ib6qs8eo5p
@user-ib6qs8eo5p Жыл бұрын
Great tutorial.
@asrbekmirsoatov7664
@asrbekmirsoatov7664 Жыл бұрын
everything is very easy with your videos
@attilaguba856
@attilaguba856 2 жыл бұрын
Very well explained! Thanjs
@CodeWithTahaCWT
@CodeWithTahaCWT 2 жыл бұрын
This video helped me a lot, Thanks 🙏🏻
@jayamalaraut273
@jayamalaraut273 5 ай бұрын
Very helpful, thank you!!
@canaldopericles2167
@canaldopericles2167 3 жыл бұрын
thanks for the class.
@rayoh2011
@rayoh2011 3 жыл бұрын
Very nice, thank you!
@binjozoken6055
@binjozoken6055 2 жыл бұрын
Killer, killer, killer stuff. Thanks.
@ahmetyilmaz3896
@ahmetyilmaz3896 3 жыл бұрын
you are amazing!
@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!
@monkeyrobotsinc.9875
@monkeyrobotsinc.9875 4 жыл бұрын
Uhhhhh...
@tahidulmazumder9756
@tahidulmazumder9756 4 жыл бұрын
Thanks brother.
@ranjanadissanayaka5390
@ranjanadissanayaka5390 6 ай бұрын
Thank you so much.
@isaacl.quelemine8775
@isaacl.quelemine8775 Жыл бұрын
Very good guy👍
@coco81828
@coco81828 4 жыл бұрын
“if you have any CONSTRUCTive criticism” :D
@hasanali9983
@hasanali9983 3 жыл бұрын
LOOOOL that well said, bro
@tuckbuckk5465
@tuckbuckk5465 2 жыл бұрын
Great Video! you gained a sub
@BilalAriturk
@BilalAriturk 2 жыл бұрын
Thank you : )
@adityalochan7256
@adityalochan7256 3 жыл бұрын
Awesome
@athariealfuraih8115
@athariealfuraih8115 3 жыл бұрын
Thaaaaaaaank you soooo much !! I finally understand
@insatiablegoddessg5300
@insatiablegoddessg5300 4 жыл бұрын
the only tutorials I understand
@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 -. -
@aaronjohnson2215
@aaronjohnson2215 4 жыл бұрын
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.
@osamashehab463
@osamashehab463 2 жыл бұрын
thank you very much Could you please make a video about "How to work with classes in a different file?"
@chile7743
@chile7743 Жыл бұрын
damn so simplified thanks
@jerrysiro2432
@jerrysiro2432 4 жыл бұрын
can you make any videos using windowforms and mysql connections
@eievui84
@eievui84 4 жыл бұрын
omg you deserve more views!
@monkeyrobotsinc.9875
@monkeyrobotsinc.9875 4 жыл бұрын
So do u
@antoninobalinado6192
@antoninobalinado6192 9 ай бұрын
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?
@alielnajjar8501
@alielnajjar8501 4 жыл бұрын
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?
@xrcryptodev
@xrcryptodev 4 жыл бұрын
So are constructors to classes like properties are to variables? Sort of?
@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.
@KiNGDiSMaY
@KiNGDiSMaY 3 жыл бұрын
skipping uni lectures and going straight to this :)
@chris8534
@chris8534 2 жыл бұрын
After watching this video I now understand what sql is for.
@ecerejo
@ecerejo 4 жыл бұрын
What theme are you using?
@sibisuruthit9622
@sibisuruthit9622 Ай бұрын
❤👌🏼🤝🏻
@joezhou7491
@joezhou7491 Жыл бұрын
So the name of the constructor and the class have to be the same? In this case “book”
@aliksargsyan2782
@aliksargsyan2782 Жыл бұрын
I always prefer use "this" keyword
@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.
@murtazonumanov783
@murtazonumanov783 2 жыл бұрын
do you have another t-shirt?
@saitejavetcha5574
@saitejavetcha5574 3 жыл бұрын
is always the constructor name and the class name is same?
@mzwakhemanga8621
@mzwakhemanga8621 3 жыл бұрын
Still impressed..
@travisvotour3159
@travisvotour3159 4 жыл бұрын
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!
@Flaeren
@Flaeren 4 жыл бұрын
"tolkein". great explanation tho, thanks man.
@2kglenn
@2kglenn Жыл бұрын
7:13 why are someone writing : this.title = aTitle; ?
@DawnFreeSdiki
@DawnFreeSdiki 4 жыл бұрын
why the hackk you the only one who i can understand with
@TheAmazeer
@TheAmazeer 4 жыл бұрын
2 constructors with the same name In the same class? Are you sure?
@Blackoutfor10days
@Blackoutfor10days 2 жыл бұрын
Bonk you 😡
@user-ib1lu3kq8t
@user-ib1lu3kq8t 5 ай бұрын
Excessive talk is not the explanation and it is not the explanation You talk too much = losing the basic meaning
Object Methods | C# | Tutorial 27
7:31
Giraffe Academy
Рет қаралды 43 М.
Getters & Setters | C# | Tutorial 28
12:09
Giraffe Academy
Рет қаралды 191 М.
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 14 МЛН
Этот Пёс Кое-Что Наделал 😳
00:31
Глеб Рандалайнен
Рет қаралды 4,2 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 27 МЛН
Classes & Objects | C# | Tutorial 25
13:25
Giraffe Academy
Рет қаралды 168 М.
Methods | C# | Tutorial 12
11:00
Giraffe Academy
Рет қаралды 55 М.
C# Constructors Tutorial | Mosh
23:24
Programming with Mosh
Рет қаралды 231 М.
C# constructors 👷
5:44
Bro Code
Рет қаралды 75 М.
Exception Handling | C# | Tutorial 24
11:01
Giraffe Academy
Рет қаралды 87 М.
C# Constructors - This is how to use them, and WHY
8:00
tutorialsEU - C#
Рет қаралды 6 М.
While Loops | C# | Tutorial 18
9:10
Giraffe Academy
Рет қаралды 45 М.
C# Tutorial: Properties, Getters and Setters
11:39
Ian Schoenrock
Рет қаралды 26 М.
Return Statement | C# | Tutorial 13
5:56
Giraffe Academy
Рет қаралды 57 М.
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 14 МЛН