![C++ Tutorial [39] - Access Specifiers | Accessors & Mutators](/images/yt/k_/c-tutorial-39-access-specifiers-accessors-and-mutators-bee-f.jpg)
C++ Tutorial [39] - Access Specifiers | Accessors & Mutators
Channel:
Subscribers:
32,299
Published on ● Video Link: https://www.youtube.com/watch?v=K_8bEe-fucA
In this episode, I show you how to use access specifiers like public and private in the class definitions so that you can achieve data hiding. I also demonstrate the use of accessors and mutators(getters and setters) which are functions to access the hidden data indirectly. Finally, I also demonstrate the const keyword with function prototypes that serve as a promise to the C++ compiler that you won't be modifying any data in the function implementation. #CPP
Code: https://gitlab.com/kody-simpson/cpp-series
Discord: https://rebrand.ly/discordlink
Support: https://www.youtube.com/channel/UC_LtbK9pzAEI-4yVprLOcyA/join
More Videos coming soon.
Leave a comment for any future video suggestions.