Need Assistance?

support@tutorialshub.in

Object-Oriented Programming (OOP)

this Pointer & static Members

ADVERTISEMENT
C++ Free Lesson
5 min read
ADVERTISEMENT

this is a pointer to the current object instance, while static members are shared across all instances of the class (since C++17, use inline static to initialize directly in the class!).

ADVERTISEMENT
Hi, I'm Tuby! Here to help you