What are access specifiers in C++?

Answers were Sorted based on User's Feedback



What are access specifiers in C++?..

Answer / nashiinformaticssolutions

• Private: Members are accessible only within the class.
• Protected: Accessible within the class and derived classes.
• Public: Accessible from outside the class.

Is This Answer Correct ?    0 Yes 0 No

What are access specifiers in C++?..

Answer / glibwaresoftsolutions

• Private: Members are accessible only within the class.
• Protected: Accessible within the class and derived classes.
• Public: Accessible from outside the class.

Is This Answer Correct ?    0 Yes 0 No

What are access specifiers in C++?..

Answer / hr@tgksolutions.com

• Private: Members are accessible only within the class.
• Protected: Accessible within the class and derived classes.
• Public: Accessible from outside the class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Ask to write virtual base class code?

0 Answers   Satyam,


tell me about yourself ?i want answer for frehers with various exasmples?

2 Answers   HCL,


If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2.

1 Answers  


Explain binary search.

0 Answers  


What is Pure Virtual Function? Why and when it is used ?

10 Answers   Lucent, Sona,


What can c++ be used for?

0 Answers  


differance between copy & clon

1 Answers   Microsoft,


What is abstraction in c++ with example?

0 Answers  


Is it possible to use a new for the reallocation of pointers ?

0 Answers  


Why are pointers used?

0 Answers  


Does there exist any other function which can be used to convert an integer or a float to a string?

0 Answers  


What is the difference between the indirection operator and the address of oper-ator?

0 Answers  


Categories