What are the three types of access specifiers in C++?
Answer / nashiinformaticssolutions
1. Public: Every student in the class is reachable from anywhere within the application.
2. Private: Only member functions within the class have access to class members.
3. Protected: Any subclass of the class or the member functions within the class can access class members.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of volatile variable?
Do you know what are pure virtual functions?
why can't we declare data member of class auto register or extern
Consider a c++ template funtion template<class T> T& Add(T a, T b){return a+b ;} if this function is called as T c = Add("SAM", "SUNG"); what will happen? What is the problem in the template declaration/ How to solve the problem.
What are the two types of comments, and how do they differ?
Differentiate between declaration and definition in C++?
When is a template a better solution than a base class?
What is a wchar_t in c++?
Is there a datatype string in c++?How is the memory allocation?
Name four predefined macros.
What is the identity function in c++? How is it useful?
What is stream and its types in c++?