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
What is namespace std; and what is consists of?
Is c++ slower than c?
What are the advantage of using register variables?
How are the features of c++ different from c?
Is dev c++ a good compiler?
Explain how the virtual base class is different from the conventional base classes of the opps.
What is the use of namespace std in C++?
What is cout flush?
Which is better turbo c++ or dev c++?
What operator is used to access a struct through a pointer a) >> b) -> c) *
What is difference between rand () and srand ()?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What are references in c++? What is a local reference?
What is meant by the term name mangling in c++?
What is #include c++?