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 vectors used for in c++?

0 Answers  


Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300”,”BullCart : 10”) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side

0 Answers   Telecom,


What is the use of endl in c++ give an example?

0 Answers  


What are the different types of polymorphism?

3 Answers  


What is jump statement in C++?

0 Answers   Ericsson,






Which is better c++ or java?

0 Answers  


Can constructor be static in c++?

0 Answers  


What are the important differences between c++ and java?

0 Answers  


Are strings mutable in c++?

0 Answers  


Define virtual constructor.

0 Answers  


Why preincrement operator is faster than postincrement?

5 Answers  


What are the types of pointer?

0 Answers  


Categories