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.
@xeakpress Жыл бұрын
FAM I KNOW WHAT YOU MEAN. Like I'm watching a TUTORIAL video. If it was 'obvious' I wouldn't be watching the video
@syedameerhussainkazmi9186 жыл бұрын
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
@HarryPotter-nc6yl5 жыл бұрын
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:
@poloska94714 жыл бұрын
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.
@XXIcenturyblood Жыл бұрын
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
@eugenekim24776 жыл бұрын
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.
@crabsynth34806 жыл бұрын
Its definitely a tough example for beginners and surely feels out of place. Its basically showing you a wrong way to do it first and then correcting it... which might not have been necessary here and is rather confusing and there are easier explanations of Static keyword... Parse is a completely custom function here... so you don't have to associate it with the default Parse functions. I know its a little bit hazy but the entire point is that we want to move the person.Name line inside a static Function so that 1. We don't have to manually assign it in the Main program every time and 2. We don't have to instantiate a Person Object (person) to call it's Parse function only to store its output result (of type Person) inside another manually created Person Object(var p)
@Coouge6 жыл бұрын
Eugene Kim I was gonna type exactly what you said. I got confused when he started using *Parse*
@renatoloefstop5 жыл бұрын
I was gonna say the same thing.
@버튜버봄-s9e4 жыл бұрын
Mosh does not even tell you that 'it was just for using static lol I'm making the code a bit longer just to use static but i won't tell you why i made the code longer unnecessarily just to use static. all you have to do is watch the next video'
@버튜버봄-s9e4 жыл бұрын
11:58 -> 13:33 this is a shit of unnecessities.
4 жыл бұрын
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.
@josegarcia2762 Жыл бұрын
Languague barrier
@Dante30856 жыл бұрын
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 !
@joeMsessions4 жыл бұрын
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!)
@nogamesnofame3 жыл бұрын
Goddamn, I finally found a youtuber whos voice does not bore me and teaches what I'm interested in!
@chelebarry6 жыл бұрын
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.
@footballCartoon914 жыл бұрын
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
@gokumetrix805 жыл бұрын
I am still struggling to understand this.
@B18CdelSol964 жыл бұрын
At the end he explains it quite badly
@B18CdelSol964 жыл бұрын
Lol this was made year ago
@gokumetrix804 жыл бұрын
@@B18CdelSol96 still dont understand it 😭
@anzerupnik1442Ай бұрын
Found this because I was learning for snytax of C# (I have some C++ exeprinece). I like that the tutorial explains the concepts of classes.
@adukaleerjook92996 жыл бұрын
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..
@josphatoluoch52054 жыл бұрын
Thanks a lot, You are changing the world bro!! :D
@dannycisco57212 жыл бұрын
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.
@91bravic122 жыл бұрын
I think what your asking is when he did Person person. This is just like setting a variable and calling "string name = "steve"; name then has all the benefits of the methods of string. Person person creates and object (kind of like a variable) which then has all the methods or whatever in the class Person. Hope that helps some, might of been better if is wasn't called Person person, but something like Person student.
@ko3li6685 жыл бұрын
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
@Nothingtosee555 жыл бұрын
C# is a little old nowadays learn python is really easy and good
@ko3li6685 жыл бұрын
@@Nothingtosee55 I'd love too! But right now I need C# for my studies. For what I've seen so far I really cant wait for the moment when I start learning Python but for now I need to focus on C#, C, JavaScript to get my diploma.
@zakaria49884 жыл бұрын
@@ko3li668 C# is still a good programming language, if you master C# and JavaScript you're at the top. You can make Web Apps, Mobile apps, Desktop Apps, Machine Learning and Cloud stuff
@ko3li6684 жыл бұрын
Update: I now learning Asp.net core. I am now able to make web sites and web applications. I've come so far since my comment here! I now got more comfortable learning .Net as a whole. Baby steps but I am getting there. From stumbling on this video for the first time looking for someone to explaining to me what is a Class to me now using Asp.net core, Entity framework core, SQL, Html, Css, Bootstrap and JavaScript to build my first web application! Man, if I can do it then you can do it too. I'll come back to this comment in 2021 August. I'll update you on where I am on the road of becoming a FullStuck web developer.
@DiorisArias4 жыл бұрын
@@ko3li668 Loving your comment. If you were able to achieve all that within 7 months, it really makes other beginners feel more motivated
@brandonnorris10264 жыл бұрын
Made me believe that I could use var to call a Class from anywhere on earth.
@dannycisco57212 жыл бұрын
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?"
@Tbone2722 жыл бұрын
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.
@VisibleWater Жыл бұрын
very nice explanation, thank you very much.
@tko97536 жыл бұрын
I’ve watched several tutorial about C# and I understand everything until I reach methods, classes and instances and then I got lost, I couldn’t understand anything. This is really frustrating
@ronancasey7 жыл бұрын
You're a great teacher :)
@jasiantheasian88944 жыл бұрын
Tldw: Person person person
@hs_infotech Жыл бұрын
Hello Sir, can you please tell me your visual studio customize settings. auto fill syntax settings like example you type cs = console.write() something like that and some more extra features you used like in class void Main the different color shows in Main tag like that and many more. Can you help.
@marsa09996 жыл бұрын
7:00.... how is “Person person” camel case when you described it as “camel Case” in 5:00? And it seems like it does not match “Pascal Case” either?
@IvyTeaRN6 жыл бұрын
person is the name of the variable. Its not a function or whatnot
@upya38135 жыл бұрын
Please, if I'm wrong about this in any way, CORRECT ME! - "Calling" and "Naming/Declaring" are two specifically different ideas/concepts... or "THINGS". for example: "Person(1) person(2)" 1) Is Calling The Class "Person" - Named As Such (Pascal) When It Was Created (As A New Class). It Is "Calling'' As It Refers To An External or Separate File (Method) Other Than The Page You Are Currently Working In. = PascalCase 2) Is DECLARING the INSTANCE of the above described, simply NAMING Person(1) arbitrarily as "person" - As you might CALL the above method several times on this current file/page ie. person1 / person2 / person3 / person4 / etc... = camelCase That is to say, ANYTIME you're referring to an Existing/Outside Class/Object or you're creating a NewClassFileToLaterReferTo (Let's Say: Method_X) = use Pascal. If you are simply giving a label to a single instance of (Method_X) when actually calling/referencing to it = use camelCase --Common convention is to prefix with "_underScore" when implementing PRIVATE methods, I believe. --Hope that helps everyone who might be stuck here. Again, correct me if I'm wrong :)
@yakuppala91305 жыл бұрын
There is an error on last code Error CS1656 Cannot assign to 'Introduce' because it is a 'method group'
@donfeto76367 жыл бұрын
want video about the arg and how to use them what there important like casting a buttom buttom bt=(sender) buttom what this mean !
@gogl0l3865 жыл бұрын
You said person so many times so now it doesn't even sound like a word.
@quickregisterseo5 жыл бұрын
I purchased his c# course. The version of Visual Studio has nothing to do with the current version. It is so different you cannot follow along. Nobody responds on forums. Waste of money.
@misterbristles5 жыл бұрын
I have not purchased his course, but I would suggest rolling back to the previous version of VS.
@jz9991z5 жыл бұрын
You said classes can be referred as objects. So is that what object oriented programming is about?
@ayemzu888 Жыл бұрын
i copied the code of the program written in first method line by line into visual studio and it has 17 errors, 1 warning and doesn't work at all. why is that? have visual studio/ c# changed so much?
@codaq40436 жыл бұрын
is it safe to say an identifier, if not a keyword, is just like a label you can use to organize?
@Osamah0015 жыл бұрын
short answer __ class Person {~~~} public Person() {~~~}
@brandonnorris10264 жыл бұрын
Its a good tutorial but it is absolutely not for beginners like myself.
@rohankumbhojkar68034 жыл бұрын
Once you master oops concepts then becomes fairly easy.
@upya38135 жыл бұрын
hey Mosh another outstanding vid! - just err... what they heck did you double tap (key or click?) to have the on screen helper pop up to make {0} and {1} suddenly appear in green (outside string and into the Main array?) --- I've missed that small little but and Im stuck at this point now! Rushing to complete an assessment so any help is appreciated! Thanks in advance
@eruptor22225 жыл бұрын
Mosh uses several external plugins/addons (paid/unpaid) that can make his coding easier to do. One of which is that highlighting affect on certain keywords ect..
@upya38135 жыл бұрын
@@eruptor2222 Thanks so much for that! Does Mosh also have a video where he showcases or recommends these plugins prior to doing these free courses he provides? You'l appreciate this particularly hard to locate among the plethora of amazing vids on his channel so if you've seen one before please share a link? In good faith, I'll pay it forward! :) Cheers again!
@misterjack3475 жыл бұрын
You are best tutor ever bro.
@wuyanchu Жыл бұрын
thx and god bless you ^_^
@ulkalobo95664 жыл бұрын
The last one person object using parse method didn't understand? Can u please elaborate
@johnconnor97875 жыл бұрын
now I understand what static methods are for
@bytiran70414 жыл бұрын
@G BBarn and yours? do you still programming?
@sanakabbani28654 жыл бұрын
@@bytiran7041 lol
@dejoneltahan19742 жыл бұрын
what the use of public string name
@prameelasekhar4 жыл бұрын
public void Introduce(string to) { Console.WriteLine("Hi {0}, I am {1}", to, Name); } Can anyone explain 'to' here ? How it getting Name 'John' in the result ?
@benzel56594 жыл бұрын
When you call the method "Introduce" it takes a parameter, which is the person you're introducing yourself "to". It is a weird way to name a parameter. It would be more sensible to go: public void Introduce(string OtherPersonsName) { Console.WriteLine("Hi {0}, I am {1}", OtherPersonsName, Name); } where {0} = Other persons name ... and {1} = Name (your name)
@lastofthesarcastic76824 жыл бұрын
I can't find the C program he uses, when I download c for Windows Im missing certain options on my top right corner like : properties, references etc, any help?
@gulwantharmeensoond57924 жыл бұрын
he is using vs.net environment to code which is a software development IDE by microsoft for .NET framework
@themixedvoices53903 ай бұрын
I can't get parse thing can someone pls explain
@clashkingdom36475 жыл бұрын
Amazing vedeos Mosh but please help me explain about parse in method because i am new to C# ,please help me because i didnt understand it thanks keep it up bro
@SuperOnlyP5 жыл бұрын
He just wants to focus on making an example of static method by using Parse method to get return value. when you get practice more you will understand Parse method is like Convert a String to a Number.
@mohamadayman5146 жыл бұрын
Could it be possible if console . writeline was written like this (System. Console.WriteLine ( );?
@setyoufree27265 жыл бұрын
@daniel halachev - other way to short the writing, put in very beginning: using static System.Console; Then we can write just: WriteLine.. without Console.WriteLine()
@chanlito48967 жыл бұрын
Hey Mosh what’s the point of learning c# when you’re a full stack js dev? Could u give me your point of view?
@soufianedasmiress77887 жыл бұрын
for making games or apps as example
@tyrellwreleck42266 жыл бұрын
C# is a java-like alternative for using .NET . Very much different from js so practically you can't utilize .NET by other non-agnostic language let alone js
@shamardinkhan16224 жыл бұрын
i like your teaching method and i follow you but sir i can't fort money to take your online C# classes so please sir upload you that classes here on youtube
@aaronjohnson22155 жыл бұрын
Why oh why, can someone explain to me why the construction is Person person = new Person() ?? I'm loosing sleep because of this. Can this variable be of different class once declared as = new Person() ? Or once declared as variable of class Person can it be something else after the = symbol? If yes then I can understand this construction, otherwise wtf? And for the sanity of new learners' sake: use different names for variables and differentiate names in general instead confusing the shit out of ppl with Person person = new Person(). Better would be Person_cls person_var = new Person_cls, at least this is showing these names are not related (not so obvious for beginners).
@desmondcayce4 жыл бұрын
bruh its not that hard, maybe ur stupid
@aaronjohnson22154 жыл бұрын
@@desmondcayce Maybe you learn how to function in society and put your point forward politely.
@kazz81764 жыл бұрын
I'm literally 16 years old how am I supposed to understand something that I never heard about like Parse
@nullreferenceexception14484 жыл бұрын
Age has nothing to do with that
@bsh73904 жыл бұрын
I am only 9, how am I supposed to know what is Parse
@percheronphenom5 жыл бұрын
His beginners course was great, but here I am just overwhelmed, Visual Studio makes the code looks colorful but it just doesn't make much sense with repeating names of this and that and what the hell are we all doing :|
@eruptor22225 жыл бұрын
Are you talking about the "Person person" part used in the code? If so, let me explain. Person is the name of the class, so when Mosh says: Person person = new Person(); what is happening is that he is creating a Person object, with the name "person" simlar to how you name variables. The "= new Person();" part of the code is intialising this object. It will also invoke any code you have in the constructor of the class. If you're unsure what constructors are, have a quick google. Effectively it is code within a class that runs on the creation of an object of that class. If you need more explanation just say :)
@onon1284 жыл бұрын
Didn’t understand anything
@javiers.82744 жыл бұрын
He lost me at the parse section too..
@Hephasto5 жыл бұрын
Fuck, seems so complicated to me! I must be very stupid if I still don’t figure out such basic things as a simple class
@AGUNGKAYA3 жыл бұрын
try python. Programming language is a choice. Not everyone is suitable in certain programming language.
@Hephasto3 жыл бұрын
@@AGUNGKAYA actually I tried and indeed it worked better for me
@jeremychu89225 жыл бұрын
person is just a varible in the code.
@redstoneguy92483 жыл бұрын
2:20 did anyone else see that volume thing
@ndost20096 жыл бұрын
It is like reading an encyclopedia; be less monotonous
@shamardinkhan16224 жыл бұрын
i am belong to very poor family so please kindly upload that lectures here
@macsoccer20122 жыл бұрын
How did you afford to write this comment then
@maxwellsmith99884 жыл бұрын
This doesn't fuckin work for me at all
@64imma Жыл бұрын
So basically instead of spending money on your udemy course, I could have just watched your KZbin videos for free?