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
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
What is #include c++?
What are c++ tokens?
what is scupper?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
How to declare a pointer to an array of integers?
Is it possible to have a recursive inline function in c++?
What is the best c++ book?
Can you please explain the difference between overloading and overriding?
What is polymorphism & list its types in c++?
Explain the difference between using macro and inline functions?
Will rust take over c++?
Is c++ free?
Which ide is best for c++?
When can I use a forward declaration?