What are the differences between public, private, and
protected access?
Answer Posted / bebo
prvate:is accessed by members of that class only.
public:is accessed by members of any class
protected: variables that are visible only
to the class to which they belong, and any subclasses.
Is This Answer Correct ? | 22 Yes | 4 No |
Post New Answer View All Answers
Difference between inline functions and macros?
What does it mean to declare a member function as static?
What kind of jobs can I get with c++?
Differentiate between structure and class in c++.
Is it possible to write a c++ template to check for a function's existence?
what does the following statement mean? int (*a)[4]
What are manipulators in c++ with example?
What is switch case in c++ syntax?
What is the best c++ ide?
What is a syntax in c++?
Why are pointers not used in c++?
What is the benefit of encapsulation?
What are built-in functions? What is the syntax for the definition?
What is pointer with example?
What is the latest version on c++?