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 the use of c++ programming language in real life?
What are the implicit member functions of class?
What are literals in C++?
Write a program in C++ for Fibonacci series
List the special characteristics of constructor.
What are static and dynamic type checking?
What is the benefit of encapsulation?
What is the difference between the parameter to a template and the parameter to a function?
What is malloc in c++?
What do the header files usually contains?
Can we make any program in c++ without using any header file and what is the shortest program in c++.
How is c++ used in the real world?
Can we distribute function templates and class templates in object libraries?
How to access a variable of the structure?
What will the line of code below print out and why?