What are the differences between public, private, and
protected access?
Answer Posted / prashant kalmodiya
PUBLIC: Specifies that those all members are accessible
from any function.
PRIVATE: Specifies that those members are accessible only
from member functions and friends functions of the class.
PROTECTED: Specifies access to class members in the member-
list up to the next access specifier (public or private)
Is This Answer Correct ? | 18 Yes | 8 No |
Post New Answer View All Answers
What is the sequence of destruction of local objects?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
What is recursion?
What are destructors?
Why pointer is used in c++?
What happens when you make call 'delete this;'?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What is the role of C++ shorthand's?
What is difference between malloc()/free() and new/delete?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is
what kind of projects are suitable for c and c++ How are the features of c++ different from c? What is pointer to array in c++? Evaulate: 22%5
a) 2
b) 4
c) 0 Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.