Duration 24:47

C++ Tutorial [39] - Access Specifiers | Accessors & Mutators

2 000 watched
0
55
Published 2020/07/19

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: /channel/UC_LtbK9pzAEI-4yVprLOcyA/join More Videos coming soon. Leave a comment for any future video suggestions.

Category

Show more

Comments - 18