Q&A
Ask and answer questions to make information more available to wider audiences.
Elliott Alred @alredelliott   07, Apr 2023 12:00 AM
C++ access modifiers
What are the C++ access modifiers?
answers 1
 
Answer 1
Adan Baumfree @baumfreeadan   08, Apr 2023 09:28 AM
The access restriction specified to the class members( whether it is member function or data member) is known as access modifiers/specifiers. 
Access Modifiers are of 3 types:
* Private – It can neither be accessed nor be viewed from outside the class 
* Protected – It can be accessed if and only if the accessor is the derived class
* Public – It can be accessed or be viewed from outside the class