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 do you mean by translation unit in c++?
Explain function overloading
What do c++ programmers do?
What is boyce codd normal form in c++?
Describe the process of creation and destruction of a derived class object?
What is abstraction with real time example?
What is the latest c++ standard?
How come you find out if a linked-list is a cycle or not?
What is the difference between the indirection operator and the address of oper-ator?
Name the operators that cannot be overloaded in C++?
What is #include iostream?
How we can differentiate between a pre and post increment operators during overloading?
write a porgram in c++ that reads an integer and print the biggest digit in the number
Describe the role of the c++ in the tradeoff of safety vs. Usability?
Should I learn c++ c?