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 |
Show the application of a dynamic array with the help of an example.
why can't we declare data member of class auto register or extern
What is an undefined reference/unresolved external symbol error and how do I fix it?
What is an operator in c++?
Does c++ have string data type?
What are the characteristics of friend functions?
What are the two types of polymorphism?
When there is a global variable and local variable with the same name, how will you access the global variable?
How many characters are recognized by ANSI C++?
Explain polymorphism?
What are the advantages of prototyping?
What do you mean by function and operator overloading in c++?