What are the c++ access specifiers?



What are the c++ access specifiers?..

Answer / hrpynux@gmail.com

In C++, there are three access specifiers: public - members are accessible from outside the class. private - members cannot be accessed (or viewed) from outside the class. protected - members cannot be accessed from outside the class, however, they can be accessed in inherited classes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is algorithm in c++ programming?

0 Answers  


What is the use of 'this' pointer?

0 Answers   Fidelity,


What is recursion?

0 Answers  


Can you write a function similar to printf()?

0 Answers  


Why do we use string in c++?

0 Answers  






What are c++ redistributables?

0 Answers  


How to construct virtual constructor

6 Answers   CIStems Software, Symphony,


declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

0 Answers  


List the issue that the auto_ptr object handles?

0 Answers  


What character terminates all character array strings a) b) . c) END

0 Answers  


Can java be faster than c++?

0 Answers  


What jobs can you get with a c++ certification?

0 Answers  


Categories