What is the difference between public, private, protected
inheritance?
Answer Posted / priya
public: class members are access from the outside the class
private: class members can access only within the class
protected:class members can access inside the same package
| Is This Answer Correct ? | 104 Yes | 51 No |
Post New Answer View All Answers
What are register variables?
What is the arrow operator in c++?
What is a c++ map?
What's the order in which the objects in an array are destructed?
What are the uses of typedef in a program?
What is conditions when using boolean operators?
What is constructor and destructor in c++?
Explain rtti.
How the programmer of a class should decide whether to declare member function or a friend function?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
How do you generate a random number in c++?
What are manipulators in c++ with example?
Which programming language should I learn first?
What is the operator in c++?
What is the use of 'this' pointer?