What is the difference between public, private, protected
inheritance?
Answer Posted / tekle
The type or member can be accessed by any other code in the
same assembly or another assembly that references it.
private
The type or member can only be accessed by code in the same
class or struct.
protected
The type or member can only be accessed by code in the same
class or struct, or in a derived class.
| Is This Answer Correct ? | 18 Yes | 4 No |
Post New Answer View All Answers
Should you pass exceptions by value or by reference?
Differentiate between an external iterator and an internal iterator?
What is an arraylist c++?
Name four predefined macros.
Why is the function main() special?
Do the parentheses after the type name make a difference with new?
What is the difference between a "copy constructor" and an "assignment operator" in C++?
Why are pointers used?
What are the benefits of c++?
Is c++ the best programming language?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
write a porgram in c++ that reads an integer and print the biggest digit in the number
Explain this pointer?
What are maps in c++?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.