C++ Static class variables and member functions

preview_player
Показать описание
Let's talk about static class variables and member functions in classes. Here's a tutorial explaining the static keyword when used on variables and functions belonging to classes.

Learn more about C++ classes, watch my classes play list:
Рекомендации по теме
Комментарии
Автор

Ive done so much C#, and getting into C++, I was running into so many issues with static, and you made it so simple to understand. Thank you !

XnathOW
Автор

Thank you for this. Its amazing how I watch other videos 10 times to try and understand something.
But all I need is someone explaining it in a different way.

So thank you for that.

Sir_Pickle
Автор

That cleared up the static method usage for me, thanks.

flioink
Автор

Great and straight to the point tutorial!
If you don't mind expanding on the topic of the the "strange" initialization that has to be done in the outer scope of the class I would appreciate it very much!

BenskiGameWorks
Автор

This was a really good explanation. I finally have a concrete understanding of this now. Seen some of your other videos too. Really good at giving clear explanations.

sketchyboi
Автор

include<iostream.h>
int main()
char a;
{ cout<<"Hi, prof..", endl;
cout<<"thank you for tutorial", a;
cin>>a;
getch();
return (0);
}

rosaniarose
Автор

I was wondering about why adding 'inline' to a static member variable allows it to be initialized within the class definition.

jwesleyb