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 |
How to reduce a final size of executable?
Define pointers?
What is constant in c++ with example?
What is an object in c++?
What is a wchar_t in c++?
Which should be more useful: the protected and public virtuals?
when can we use copy constructor?
What are the uses of pointers?
What is the output of: String a1 = "Hello"; String a2 = "world!"; String* s1 = &a2; String& s2 = a1; s1 = &a1; s2 = a2; std::cout << *s1 << " " << s2 << std::endl;
What is Name Decoration?
What is searching? Explain linear and binary search.
Can comments be longer than one line?