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
Explain the register storage classes in c++.
Why can’t you call invariants() as the first line of your constructor?
What things would you remember while making an interface?
Differentiate between a constructor and a method in C++.
Can I learn c++ without knowing c?
If I is an integer variable, which is faster ++i or i++?
What is long in c++?
Explain the static member function.
Is c++ a programming language?
What is c++ prototype?
Is swift faster than c++?
What c++ library is string in?
What is the difference between c++ and turbo c++?
What is scope operator in c++?
what are the types of Member Functions?