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/

41 Comments

Omer YILMAZ

June 14, 2020

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

Reply

GUDgrapich

June 14, 2020

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. 😀

Reply

martan nose

June 14, 2020

5:37 DDDDDJJJJJJ

Reply

Playonce

June 14, 2020

Thank you bro i understood!

Reply

Sana 99

June 14, 2020

cool tutorial : )

Reply

Joe Dailey

June 14, 2020

What studio do you use? It looks like an alternative to Visual Studios.

Reply

Emmanuel Chevalier

June 14, 2020

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.

Reply

Maryem Farooqi

June 14, 2020

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.

Reply

Koro

June 14, 2020

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 !

Reply

اریانا بخشنده

June 14, 2020

wow !
thank you very much bro !!!
that was awesome😁❤!!!!

Reply

Alejandro Lopez

June 14, 2020

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;

Reply

Melt Down

June 14, 2020

I love brackeys

Reply

blutsport

June 14, 2020

Had a lot of fun following through, great examples!

Reply

Ferky

June 14, 2020

everyone gangsta until the static part arrived

Reply

Pixel

June 14, 2020

I can't understand the static access modifier

Reply

Luxurious 03

June 14, 2020

What I learned about static:
Literal communism
Dog.count?
Nah, it's Animal.count now

Reply

Kamal deep Singh

June 14, 2020

super thanks

Reply

rs keeran

June 14, 2020

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.

Reply

iedob

June 14, 2020

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

Reply

Subramanya M

June 14, 2020

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..

Reply

Juan Ignacio Beltramino

June 14, 2020

You should go slower man, it's impossible to follow that mouse through the screen. The content its OK.

Reply

Ticie Dumas

June 14, 2020

Difficulty of lesson: Novice. 🙁

Reply

Goatboymagic

June 14, 2020

atleast be clear when you declare variables in class they are called as fields not properties.

Reply

Mang

June 14, 2020

Mr Beans

Reply

angel joseph

June 14, 2020

good video

Reply

Conor McGregor

June 14, 2020

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

Reply

Dippps

June 14, 2020

Good job. Thanks very much. Ill watch all commercials in your tutorial to the end so youll get coins.

Reply

MarcusMeyerTricks

June 14, 2020

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!

Reply

Inspiron

June 14, 2020

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

Reply

mrhotsz

June 14, 2020

this instruction is clean! very informative

Reply

Mathias Ferstl

June 14, 2020

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

Reply

Nigel Caruana

June 14, 2020

How can I make a third animal I can't make another constructor?. Please Help Me!!

Reply

Frank Parker

June 14, 2020

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!

Reply

POTTI SRINIVASA RAO YERIPILLI

June 14, 2020

Awesome Brackeys. Thank you.

Reply

JR

June 14, 2020

Wishes you zooms in on the code your writing, a ton of whitespace at the bottom so can't see details

Reply

slapmyfunkybass

June 14, 2020

Thanks buddy, well explained and very helpful.

Reply

Viktória Kat Dévényi

June 14, 2020

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.

Reply

MINI_ RAJnIKANT

June 14, 2020

love the way he explains

Reply

Muad'dib

June 14, 2020

How does he get Console.WriteLine(); after writing just CW?

Reply

RustyRyan

June 14, 2020

When someone has a folder named “Desktop” you know they mean fucking business.

Reply

Nikhil

June 14, 2020

i mean on the same topic.

Reply

Leave a Reply