What are the differences between public, private, and
protected access?
Answer Posted / manjusinga
public is used for global access that is its scope is not
only within the class but also outside the class.
private is used only in the class class in which it is
defined.It cannot be accessible by its derived members.
protected is used within the class in which it is defined
and derived members of it can also access it.
Is This Answer Correct ? | 133 Yes | 10 No |
Post New Answer View All Answers
What is type of 'this' pointer? Explain when it is get created?
What are friend functions in C++?
What is class and structure in c++?
How are the features of c++ different from c?
How do I tokenize a string in c++?
What is the basic of c++?
Explain mutable storage class specifier.
Do vectors start at 0?
Do you know the problem with overriding functions?
What are the two types of comments, and how do they differ?
What's the best free c++ profiler for windows?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
Write a program to find the Fibonacci series recursively.
How do you sort a sort function in c++ to sort in descending order?
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)