What do you mean by public protected and private in c++?
Answer / Satyendra Kumar Yadav
In C++, access specifiers are used to control the visibility of class members. Public members can be accessed from anywhere, Protected members can only be accessed within the same class and its derived classes, while Private members can only be accessed within the same class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which algorithm do you like the most? Why?
In a class only declaration of the function is there but defintion is not there then what is that function?
What are the rules for naming an identifier?
Explain the difference between overloading and overriding?
Is it possible to provide default values while overloading a binary operator?
Explain friend class?
When is the copy constructor called?
How would you implement a substr() function that extracts a sub string from a given string?
What are the benefits of c++?
Explain rtti.
Write a program to calculate the following i want a c++program for this condition 1+4+9+16+….+100 Like this (1^2+2^2) Hint use function pow(a,b)
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.