Things get awesome as we learn about classes and how we can create our own objects by describing them using code.
● Developer Forum:
Difficulty of lesson: Novice.
····················································································
Want to make powerful games, Windows and Mac software or mobile applications? Then this course is a great place to start.
····················································································
♥ Donate:
♥ Subscribe:
● Website:
● Facebook:
● Twitter:
····················································································
► All content by Brackeys is 100% free. I believe that education should be freely available to everyone. Want to support me in my mission?
Donate here:
····················································································
♪ Baby Plays Electro Games
Nguồn: https://abdevilliersfan.com
Xem thêm bài viết khác: https://abdevilliersfan.com/game/
When I was watching while,for loops and if statements I was imagining that some cool stuff could be done with them but in classes and methods Ive learned basics but I dont have any idea how to use it, what to do with them
I couldn't understand Classes to save my life but somehow you explained it very well and now I understand them(Somewhat) amazing how I watched 2 – 3 videos and read about classes but didn't understand them until now. I got my interest in programming back on track. 😀
5:37 DDDDDJJJJJJ
Thank you bro i understood!
cool tutorial : )
What studio do you use? It looks like an alternative to Visual Studios.
So I went throught those 10 first videos.
This is crazy.
This is crazy because I thought coding was way out of my reach but those videos are helping me learning it smoothly.
This is crazy because I wouldn't have thought spending all those hours in Warcraft III editor, triggering events and stuff would have been helping me understand your videos so well.
I'm not stopping now. I want more.
But still, this serie is awesome, and I wanted to say it.
If anyone is having trouble understanding think of it like this:
Your class is a box that holds information. The Main is a box that has information(taken from the user like we do with console.readline()) that the class wants to get hold of. So the way the class takes this information from the main is it creates a portal of itself inside the main.
Now a portal is accessed by two sides. One side is inside the class, one side is inside the main. The side inside the class is called the constructor. The side inside the main is called the instance. The instance receives values from the main and passes them onto the constructor, which can then be used by the class.
**Inside the Class**
string animalName;
public Animal(string name){
//this is a constructor
//it is asking for a name for the animal
animalName = name; // the constructor is saying, the name that the instance gives me, I'm gonna put it in this variable.
}
**Inside the Main**
Animal animal = new Animal("Bob");
//this is an instance. It is giving the constructor the name of the animal "Bob". The constructor then puts "Bob" inside the animalName variable in the Class. Now the class can use this value.
Why should anyone ever use this if the other ways are way more easy ?
The first video im going to dislike cuz this is super complicated and uneeded, just keep it in the main class !
wow !
thank you very much bro !!!
that was awesome😁❤!!!!
I understood everything. Just why did we need to add the f to the float? I mean the variable called happiness, why did we put happiness = 0.5f; instead of just = 0.5;
I love brackeys
Had a lot of fun following through, great examples!
everyone gangsta until the static part arrived
I can't understand the static access modifier
What I learned about static:
Literal communism
Dog.count?
Nah, it's Animal.count now
super thanks
can you make a video of how to put datas in arrays and save them in the harddisk and later if i open it nagain the datas i already saved should be there.
so does public static int count = 0 only run once? If it runs each time a new instance is created, wouldn't it reset to 0 each time you make a new instance?
help plz
Only by doing a project, we can learn the concept better. Now I got the need for this while trying to save the data to various text files. Let's see..
You should go slower man, it's impossible to follow that mouse through the screen. The content its OK.
Difficulty of lesson: Novice. 🙁
atleast be clear when you declare variables in class they are called as fields not properties.
Mr Beans
good video
It’s pretty easy to understand but when you want to apply it, thats when you forget how exactly the method goes again. Maybe cheat sheet would be best
Good job. Thanks very much. Ill watch all commercials in your tutorial to the end so youll get coins.
I know this video is really old, but I just want to thank you for having this awesome tutorial series. It has helped me a lot!
T H A N K S F O R T U N I N G I N A T B R A C K E Y S
this instruction is clean! very informative
Hi i like your vids bro. Maybe you can make a tutorial Video where you can show us how to you classes in a real Programm? This would be very helpful for me
How can I make a third animal I can't make another constructor?. Please Help Me!!
This was amazing! I finally grasped object-oriented programming thanks to this series and now understand how much more powerful this is even at the age of nearly 40 coming from a time where linear execution of code was still the norm. Much appreciated!
Awesome Brackeys. Thank you.
Wishes you zooms in on the code your writing, a ton of whitespace at the bottom so can't see details
Thanks buddy, well explained and very helpful.
I think uploading the source code would be cool so we don't have to watch the whole video and trying to find the material when we're revising.
love the way he explains
How does he get Console.WriteLine(); after writing just CW?
When someone has a folder named “Desktop” you know they mean fucking business.
i mean on the same topic.