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 is the most powerful coding language?
Why is it necessary to use a reference in the argument to the copy constructor?
What is a constructor and how is it called?
What is the hardest coding language to learn?
What are maps in c++?
Is ca high or low level language?
What is the role of static keyword for a class member variable?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
Why do we need pointers?
Is c++ an oop?
Is recursion allowed in inline functions?
Explain the concept of memory leak?
Define private, protected and public access control.
Explain virtual destructor?