What are access specifiers in C++?
Answers were Sorted based on User's Feedback
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 |
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 |
• 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 |
Ask to write virtual base class code?
tell me about yourself ?i want answer for frehers with various exasmples?
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.
Explain binary search.
What is Pure Virtual Function? Why and when it is used ?
What can c++ be used for?
differance between copy & clon
What is abstraction in c++ with example?
Is it possible to use a new for the reallocation of pointers ?
Why are pointers used?
Does there exist any other function which can be used to convert an integer or a float to a string?
What is the difference between the indirection operator and the address of oper-ator?