Static Class Attributes | Java | Tutorial 32

preview_player
Показать описание

Throughout the course we'll be looking at various topics including variables, arrays, getting user input, loops, conditionals, object orientation, and much more.
Рекомендации по теме
Комментарии
Автор

I wish he had continued making those videos, also advanced ones. He seemed to have stopped making them. They are so good, I would pay for them.

SunshineFromWithin
Автор

You are amazing! Such an novel, innovative example! You should be a professor teaching at universities because the way you teach is super straightforward, clear, fluent and besides you are very knowledgable! That is all a teacher should have and you have more than that. May I ask which country and city are you from because as a native English speaker your accent and way you speak English is super clear and fluent, extremely understandable?please consider being a professor!

thestarinthesky_
Автор

I think the main reasons to use the getters and setters is that, we encapsulate the fields in the above video so because of that we can not access them using objects in other class. The private access modifier completely makes them invisible. So in order to keep the use of the constructor we need them getters and setters. And thank you mike, tho i got it from you!

binyampapi
Автор

Just wanted to say thank you, you explained this really well and made it relatively straight forward to understand.

Starchaser_
Автор

Great explanation , can be able to understand easily without having any prior knowledge about programming.

venkateshvullaganti
Автор

Thank you very much!.. This courses are gold, , thank you, thank you, thank you.. greeting from Bolivia!

al
Автор

are static attributes the same as class variables? Great course, learning a lot! You should consider sharing the playlists on Reddit

munyafiction
Автор

So, if I delete a song, I will need to decrement the songCount by 1, right? Does Java support Deconstructors, like C++? How else can I implement 'delete a song'?

ArnabJoardar
Автор

If I construct more songs from a second Java program (maybe it's called "SecondApp") within its main method, does songsCount get reset to 0 or does it retain its integer value from the execution of App.class?

MrPaulOMalley
Автор

Why is it "songsCount++" and not "this.songsCount ++" ? Is it different because the variable is static?

ocukor
Автор

So if there is no static, the result would be
song count: 1
song count: 1
1
1?
I'm so dumb

dexspits