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
What are the two main components of c++?
What do you mean by function overriding & function overloading in c++?
What are libraries in c++?
What is pure virtual function?
What is a Default constructor?
Is sorted c++?
What is c++ best used for?
What are pointers used for c++?
What is the prototype of printf function?
Write is a binary search tree? Write an algo and tell complexity?
What is the difference between containment and delegation?
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
Write a struct time where integer m, h, s are its members?
What is an adaptor class or wrapper class in c++?
What is a container class?