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/
Omer YILMAZ
June 14, 2020When 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
GUDgrapich
June 14, 2020I 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. 😀
martan nose
June 14, 20205:37 DDDDDJJJJJJ
Playonce
June 14, 2020Thank you bro i understood!
Sana 99
June 14, 2020cool tutorial : )
Joe Dailey
June 14, 2020What studio do you use? It looks like an alternative to Visual Studios.
Emmanuel Chevalier
June 14, 2020So 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.
Maryem Farooqi
June 14, 2020If 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.
Koro
June 14, 2020Why 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 !
اریانا بخشنده
June 14, 2020wow !
thank you very much bro !!!
that was awesome😁❤!!!!
Alejandro Lopez
June 14, 2020I 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;
Melt Down
June 14, 2020I love brackeys
blutsport
June 14, 2020Had a lot of fun following through, great examples!
Ferky
June 14, 2020everyone gangsta until the static part arrived
Pixel
June 14, 2020I can't understand the static access modifier
Luxurious 03
June 14, 2020What I learned about static:
Literal communism
Dog.count?
Nah, it's Animal.count now
Kamal deep Singh
June 14, 2020super thanks
rs keeran
June 14, 2020can 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.
iedob
June 14, 2020so 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
Subramanya M
June 14, 2020Only 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..
Juan Ignacio Beltramino
June 14, 2020You should go slower man, it's impossible to follow that mouse through the screen. The content its OK.
Ticie Dumas
June 14, 2020Difficulty of lesson: Novice. 🙁
Goatboymagic
June 14, 2020atleast be clear when you declare variables in class they are called as fields not properties.
Mang
June 14, 2020Mr Beans
angel joseph
June 14, 2020good video
Conor McGregor
June 14, 2020It’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
Dippps
June 14, 2020Good job. Thanks very much. Ill watch all commercials in your tutorial to the end so youll get coins.
MarcusMeyerTricks
June 14, 2020I 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!
Inspiron
June 14, 2020T 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
mrhotsz
June 14, 2020this instruction is clean! very informative
Mathias Ferstl
June 14, 2020Hi 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
Nigel Caruana
June 14, 2020How can I make a third animal I can't make another constructor?. Please Help Me!!
Frank Parker
June 14, 2020This 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!
POTTI SRINIVASA RAO YERIPILLI
June 14, 2020Awesome Brackeys. Thank you.
JR
June 14, 2020Wishes you zooms in on the code your writing, a ton of whitespace at the bottom so can't see details
slapmyfunkybass
June 14, 2020Thanks buddy, well explained and very helpful.
Viktória Kat Dévényi
June 14, 2020I 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.
MINI_ RAJnIKANT
June 14, 2020love the way he explains
Muad'dib
June 14, 2020How does he get Console.WriteLine(); after writing just CW?
RustyRyan
June 14, 2020When someone has a folder named “Desktop” you know they mean fucking business.
Nikhil
June 14, 2020i mean on the same topic.