What are the differences between public, private, and
protected access?
Answer Posted / golledla prathap reddy
public data can access anybody in the program.
private data can access olny members of that class.
protected also same like private but the difference is it
can access by derive class also.
we can see the use of protected data in inheritance.
Is This Answer Correct ? | 64 Yes | 12 No |
Post New Answer View All Answers
What is a c++ map?
Please explain the reference variable in c++?
What is the iunknown interface?
What is a driver program?
Can you Mention some Application of C/C++?
In what situations do you have to use initialization list rather than assignment in constructors?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
What is searching? Explain linear and binary search.
Explain the concept of memory leak?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
What is the purpose of templates in c++?
Describe the setting up of my member functions to avoid overriding by the derived class?
What is data abstraction? How is it different from data encapsulation?
Does c++ vector allocate memory?
What are the important differences between c++ and java?