Q.What are C++ access specifiers ?
Answers
Answered by
1
Access specifiers are used to define how the members (functions and variables) can be accessed outside the class.
Private: Members declared as private are accessible only within the same class and they cannot be accessed outside the class they are declared. Child classes are also not allowed to access private members of parent.
Public: Members declared as public are accessible from anywhere.
Protected: Only the class and its child classes can access protected members.
Private: Members declared as private are accessible only within the same class and they cannot be accessed outside the class they are declared. Child classes are also not allowed to access private members of parent.
Public: Members declared as public are accessible from anywhere.
Protected: Only the class and its child classes can access protected members.
Answered by
0
Hey !
______________________________
=> VTABLE
A table created or compiled by high leveled language by engineer level coding in Java, c++, python, etc.
=> VPTR
The code compiled during and error or code problem us shown in the compile section this is to be corrected later.
______________________________
Thanks !
Similar questions