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 is the iunknown interface?
Is c++ a high level language?
Differentiate between an array and a list?
What are the advantages of using friend classes?
Is c++ map a hash table?
Difference between a homogeneous and a heterogeneous container
What is heap sort in c++?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
What is c++ hiding?
Write about a nested class and mention its use?
Explain the concept of dynamic allocation of memory?
What is an orthogonal base class in c++?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
What is the use of setfill in c++?