i started watching these videos when i was a 13 year old kid struggling learning to code for the first time. i used them to learn how to make small games on unitiy. being dsylexic and adhd i wasnt very gifted academicly but i could code. thanks to these free videos. im now studying software engineering at my dream university and after four years ive looped back around to this channel. its funny how life works.
Hey Mike. I really enjoy your videos regarding c#. Thanks for explaining it so well. It is very helpfull for me also just listening to your explanations while i’m walking my dog. That tends to bring me faster to the “ooooohhhhhh” moment😊. Well of course it might take at least some pre knowledge about termilogy and functions, but it is fun to experience that light-bulb moment. Only draw is that i don’t keep an eye of my dog finding and eating stuff, not suitable for dogs😊…..
Mike, these videos are incredibly clear and helpful. Any chance you could add a few more Unity-minded C# examples? Like Coroutines and Events? And grabbing and sharing values between scripts?
Great explanation, again. Question, why do you prefix an a to your parameters? Is that for a reason or just because a is the first letter of the alphabet. And, wouldn't it be better if you'd use this.title = title; in the constructor?
its because in a constructor it won't let you use the same name for the variable being assigned and the paramater. So you can't do: public Song(string title) { title = title } Instead you have to name the parameter something else.
I literally skipped 80% of this video and understand the concept completely. Static means it spans the entire class. Great. Why do you describe every single line of code?
A solution I tried messing with: In the program class: //[STATIC CLASS ATTRIBUTES]//
Song holiday = new Song("Holiday", "Green Day", 200); Song kashmir = new Song("Kashmir", "Led Zeppelin", 150); Song lala = new Song("fdsafas", "fdsafsdn", 800); //This should directly be at the end of that object. If in accordance with his tutorial. // However, how do we really get the student count? Console.WriteLine(Song.songCount); Console.WriteLine(holiday.getSongCount()); Console.WriteLine(kashmir.getSongCount()); Console.WriteLine(lala.getSongCount()); Console.ReadLine(); In the song class: public string title; public string artist; public int duration; public static int songCount = 0; public int count; public Song(string aTitle, string aArtist, int aDuration) { title = aTitle; artist = aArtist; duration = aDuration; count = songCount++; } public int getSongCount() { return count + 1; }
i started watching these videos when i was a 13 year old kid struggling learning to code for the first time. i used them to learn how to make small games on unitiy. being dsylexic and adhd i wasnt very gifted academicly but i could code. thanks to these free videos. im now studying software engineering at my dream university and after four years ive looped back around to this channel. its funny how life works.
I like how you recreate the class every video to be different - it's really re-enforcing how the concept works.
You helped me have a breakthrough. I’ve been struggling to wrap my head around static for a while. Thanks so much!
Your tutorials make me more productive, thanks bro
This tutorials are really awesome, you should make one for stack/heap; reference types/value types recursion etc...
Hey Mike.
I really enjoy your videos regarding c#.
Thanks for explaining it so well. It is very helpfull for me also just listening to your explanations while i’m walking my dog. That tends to bring me faster to the “ooooohhhhhh” moment😊.
Well of course it might take at least some pre knowledge about termilogy and functions, but it is fun to experience that light-bulb moment.
Only draw is that i don’t keep an eye of my dog finding and eating stuff, not suitable for dogs😊…..
I actually understood what's going on?! Thank you so much for this!
Love how you explain things very deep and thoroughly
Thanks dude it's crystal clear
Nice clear explanation. Cheers
Thanks!!! this was great :-)
Mike, these videos are incredibly clear and helpful. Any chance you could add a few more Unity-minded C# examples? Like Coroutines and Events? And grabbing and sharing values between scripts?
Many thanks Mike...
Pls can you do a video on concepts of OOP with explanations for modeling Aggregation, Composition et.c using C# ?
please explain copy constructor in simple and easy step, and explain how it work and where i can use it
תודהה סרטון מעולה!!!!!!!!!!!1
Please help us do oop 4 pillers in c# i love your explanation
Great explanation, again. Question, why do you prefix an a to your parameters? Is that for a reason or just because a is the first letter of the alphabet. And, wouldn't it be better if you'd use this.title = title; in the constructor?
He said before in his past C# tutorials. 'a' is just a notation for an argument but you can really name it any.
its because in a constructor it won't let you use the same name for the variable being assigned and the paramater. So you can't do:
public Song(string title)
{
title = title
}
Instead you have to name the parameter something else.
@@milesblack1830 i know 2 years late but cant u just do this.title = title?
thank you, explain clear and easy to understand
thanks
wtf? why are you calling "Properties", Attributes?
They're not even properties - they're fields!
Felds are not attributes, nor properties
hello. you dont need to write public static int GetSongCount ?
These are fields, attributes are something else. you explain things well but it's a shame you didn't check that you are you using the right terms.
fields == attributes....
It's not hard for you check other term neither.
@@milesblack1830 nope
I literally skipped 80% of this video and understand the concept completely. Static means it spans the entire class. Great. Why do you describe every single line of code?
Because ur mom
because it's a course for beginners
A solution I tried messing with:
In the program class:
//[STATIC CLASS ATTRIBUTES]//
Song holiday = new Song("Holiday", "Green Day", 200);
Song kashmir = new Song("Kashmir", "Led Zeppelin", 150);
Song lala = new Song("fdsafas", "fdsafsdn", 800);
//This should directly be at the end of that object. If in accordance with his tutorial.
// However, how do we really get the student count?
Console.WriteLine(Song.songCount);
Console.WriteLine(holiday.getSongCount());
Console.WriteLine(kashmir.getSongCount());
Console.WriteLine(lala.getSongCount());
Console.ReadLine();
In the song class:
public string title;
public string artist;
public int duration;
public static int songCount = 0;
public int count;
public Song(string aTitle, string aArtist, int aDuration)
{
title = aTitle;
artist = aArtist;
duration = aDuration;
count = songCount++;
}
public int getSongCount()
{
return count + 1;
}