What are the differences between public, private, and
protected access?
Answer Posted / alka choubey
public:class members are access from the outside the class.
private:class members are access only within the class.
protected:class members can access inside the same package.
Is This Answer Correct ? | 29 Yes | 13 No |
Post New Answer View All Answers
What are friend classes?
Why #include is used?
Comment on c++ standard exceptions?
What is the use of endl in c++ give an example?
What is c++ iterator?
How many types of modularization are there in c++?
Can static member variables be private?
What is setiosflags c++?
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 gives the current position of the put pointer? Will a recursive function without an end condition every quit, in practice
a) Compiler-Specific (Some can convert to an infinite loop)
b) No
c) Yes Define the process of error-handling in case of constructor failure? How would perform Pattern Matching in C++? What is private inheritance? what is data encapsulation in C++?