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
How can a called function determine the number of arguments that have been passed to it?
Define a constructor?
How a new operator differs from the operator new?
What do the header files usually contains?
Is c++ a high level language?
List the types of polymorphism in c++?
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
What is #include math h in c++?
Is dev c++ free?
what are the iterator and generic algorithms.
what is c++
Explain what you mean by a pointer.
What are virtual constructors/destructors?
How do I tokenize a string in c++?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?