Twitter ►
Instagram ►
Patreon ►
Slack ►
Series Playlist ►
Static in a global scope ►
Check out my favourite gear for programming:
Laptop ►
Keyboard ►
Monitors ►
MAIN Camera ►
MAIN Lens ►
Second Camera ►
Microphone ►
Nguồn: https://ka-nom.com/
Xem thêm bài viết khác: https://ka-nom.com/cong-nghe/
Xem thêm Bài Viết:
- Hướng dẫn tải và cài đặt Stranded Deep Full Crack 2020 – Daominhha.com
- How To download and install staruml || StarUml- How to make uml diagrams
- C String Library and String Copy Function – strcpy()
- [Lập trình C/C++] Xây dựng hàm strcpy – Sao chép chuỗi
- Best Mod For Seiko SKX007 Dive Watch – Strapcode's Original Super Three Link Bracelet
I don't how people find reasons to dislike this type of videos.
all your tutorials you are explaining really fast cant follow with you , damn it😖
does he means by a class instance a class object ?
I did not understand this @3:13 why is he initializing
can anyone help me
Passing to a class an instance of that same class. Is that recursivity?
great video !!!
Why do we dont need a declaration for print() function in the .cpp file?
LMAOO – "some czech hotel……dont ask questions"
Keep pressing the left arrow key in the beginning of the video.. . . . . :V
"static class" title is misleading. a class cannt be static. it should be "static members". also static methods can access non-static members because they don't have "this" hidden pointer. static member data don't contribute in the memory of class objects because they are not a part from any object. struct Foo{ static int x; void foo(){} static void bar()}; int Foo::x; cout << sizeof(Foo);// 1
* also static member functions cannot be const again because they don't have this pointer. they also cannot call non static member functions: Foo::
void Foo::bar(){ foo(); // error foo() is not static method
}
My takeaways:
1. Static variables that are inside a class are shared between class instances 0:29, like global variables for the class
2. Static methods have a similar effect 1:10
3. Why we want to use static inside a class 4:50
4. Static methods can’t access non-static variables 5:35
meritorical video, i like it
This is the first video of his I felt confused about, I'll make a mental note to learn and experiment about static from other resources, but continue on with the series
1:47 The link is gonna be every where 🙂
3:11 Tell me that is just a hack, and that's not really how you would do that. It's so confusing, you creating a class, but then have to define stuff outside the class.
I have been watching the videos in correct order but now I am lost at the mention of int Entity::x; It would be good to expand this.
Thanks a lot mate, your videos have cleared a lot of my doubts. Love this complete series
You just gave me an idea for game with hive mind enemies
I'm not sure if I ever learned a programming language this well, thanks for all the insights
Every sentence coming out of his mouth is gold.
An example of this in use and i'm just guessing here would probably in speedrunners team mode where the team members share boost but then again…nvm
If I pass an instance pointer (or reference) to a static method, can the static method access private variables within that instance? Is it necessary to declare static member functions friends of the class or are they born with full privileges?
I think this is a bad video on classes cuz he keeps on having exceptions like "i'm not gonna use class, instead see my other video". "This is not written correctly but for an example".
It just adds more to the things you don't know and everythings gets harder to understand. An explanation of a topic should focus on the topic in a regular, known-to-begginners, scenario.
Why do we have to define static variables?
Thanks. Interesting as always!
The whole video makes sense except for the linker error at 3:00. Why would you need to manually define those variables?
why do i needed to define the x and y outside main function?