What is the difference between public, private, protected
inheritance?
Answer Posted / krishnakumar
Modifier | Class | Package | Subclass | World
public | Y | Y | Y | Y
protected | Y | Y | Y | N
no modifier | Y | Y | N | N
private | Y | N | N | N
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
How does class accomplish data hiding in c++?
Describe linked list using C++ with an example.
What are the defining traits of an object-oriented language?
Can you please explain the difference between static and dynamic binding of functions?
How do you decide which integer type to use?
What are the advantages of using friend classes?
How do you flush a buffer in c++?
Is c++ the most powerful language?
What is a class template?
What is constant in c++ with example?
what is c++
Why do we use the using declaration?
Why is c++ still popular?
What is c++ and its features?
Why is c++ difficult?