What is the difference between public, private, protected
inheritance?
Answer Posted / munish saini
** Public variables, are variables that are visible to all
classes.
** Private variables, are variables that are visible only
to the class to which they belong.
** Protected variables, are variables that are visible only
to the class to which they belong, and any subclasses.
| Is This Answer Correct ? | 41 Yes | 10 No |
Post New Answer View All Answers
What are the 3 levels of programming languages?
Why do we use setw in c++?
Explain the virtual inheritance in c++.
What is a class definition?
What are the advantages of pointers?
What is the use of "new" operator?
When should we use container classes instead of arrays?
What are formatting flags in ios class?
Can static member variables be private?
When do we use copy constructors?
What programming language should I learn first?
Write a note about the virtual member function?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Can we change the basic meaning of an operator in c++?