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 are the extraction and insertion operators in c++? Explain with examples.

0 Answers  


Are c and c++ similar?

0 Answers  


What are the uses of static class data?

0 Answers  


Is empty stack c++?

0 Answers  


What are advantages and disadvantages of Design patterns?

7 Answers   IBM, Vodafone,


What is difference between array and vector in c++?

0 Answers  


Define whitespace in C++.

0 Answers   HCL,


How is computer programming useful in real life?

0 Answers  


What is stack unwinding?

0 Answers  


What will i and j equal after the code below is executed? Explain your answer.

1 Answers  


what is the diff b/n c and c++ a. dynamic scoping b. nested switching c. declaration of variables in any code block d. separation of compilation and linking

2 Answers   Hughes,


When copy constructor can be used?

4 Answers   Symphony,


Categories