C# Classes Tutorial | Mosh

preview_player
Показать описание
Learn and understand classes in C#

SUBSCRIBE FOR MORE VIDEOS!

STAY IN TOUCH
Рекомендации по теме
Комментарии
Автор

Finally a programmer who does not suffer from "its obvious" syndrome and accually explain all the small details, point out what can be ignored for the moment and repeats the small details over en over at any oppourtunity to remind the viwer and not overwhelm him/her.

olekristianrannekleiv
Автор

I gave this dude a subscribe just because he said its perfectly fine if we dont want to register for his course, seems to me like not only is he a great teacher but also a humble person. Good on you mate

syedameerhussainkazmi
Автор

For anyone having trouble figuring out how to make the cmd window stay open when running the program:

[Option 1]: Top-Most FileMenu -> "Debug" -> "Start Without Debugging"
[Option 2]: Press Ctrl+F5 (Note: you might have to press [Ctrl + fn + F5] or it will open menu instead of executing... depends on your keyboard)

Cheers.

poloska
Автор

6:34 (copy pasted from net) The main limit is that C# only lets you use var for local variables (inside a function).
Your class members must have explicit types.

In your case, it looks like you want this:

HarryPotter-ncyl
Автор

0:26 - What is a class?
0:50 - Real world example
2:22 - Anatomy of a class
3:46 - Object
4:32 - Declaring classes
6:35 - Creating objects
7:21 - Using objects
7:32 - Class members
8:15 - Why use static members?
8:52 - Declaring static members
9:06 - Demo

XXIcenturyblood
Автор

No one can visually clearly explain all these hierarchies - a lot of talks, code does not make less confusion. Although I understand it more, but I listen as a newbie and hear all the reasons for confusion. Lecturers should try to make this understandable for 8yo kid - and it could be achievable.

Автор

With the "Parse" method, aren't you just making a constructor in a roundabout way here? Am I missing something? Seems like a pretty unconvincing example of why I'd want to use a static member. (Mosh, btw, I've bought a few of your Udemy courses, and love them. Did them at the start of my career and I'm two years in now. Thank you!)

TheTrace
Автор

Actually the static function inside a class outside program
is a good example.
Because we cannot create object in the main function,
So we create an object inside the class

footballCartoon
Автор

Goddamn, I finally found a youtuber whos voice does not bore me and teaches what I'm interested in!

nogamesnofame
Автор

6:02 You went over the method return type with you'r mouse while saying "Signature". I am not sure if you meant to say that the return type is part of the method signature, but just to eradicate any confusion, the method return type is definetly not part of the method signature !

Dante
Автор

I really want someone to explain the Person vs person step in a way that locks in it. A beginner's example with a different word for each would really help.

dannycisco
Автор

I just started learning programming for a month now! (C and C#) I'll keep learning until the end of days.

I'll be answering questions about "Where am I now at programing?" after 9 months from now!
cya

koli
Автор

Great and humble of online programmers I am not a computer science but I am just watching yours for well arrange clear explanation..I subscribe..

adukaleerjook
Автор

As a beginner I was totally thrown by the string[] in the Main()... being shown examples of more confusing ways to give the same result is the best way to make my brain switch off. My brain just says "Parse? Why?"

dannycisco
Автор

It was a bit troublesome for me to understand that final 2 min of the videos still wrapping my head to understand well how the method in a class interact. I will see your other video on methods hope this clears things up.

chelebarry
Автор

thanks for the videos, planning taking your course after I get through all the free stuff. Just trying to maximize exposure as much as I can. Thanks for giving both options.

Tbone
Автор

Thanks a lot, You are changing the world bro!! :D

josphatoluoch
Автор

He lost me at the parse section. Parse wasn't even reviewed at least enough to understand the last example... Struggling to understand this section.

eugenekim
Автор

short answer __ class Person {~~~} public Person() {~~~}

Osamah
Автор

very nice explanation, thank you very much.

VisibleWater