What is the difference between public, private, protected
inheritance?
Answer Posted / dee
public-->inherite the protected members as preotected in
drived class and pubic members wiull be public in derived
class
protected--->pubic and protecated members of the base class
will become protected in derived class
Private-->pubilc and proteacted members will become private
in derived class
| Is This Answer Correct ? | 170 Yes | 48 No |
Post New Answer View All Answers
When must you use a pointer rather than a reference?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
What is auto type c++?
Are strings mutable in c++?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
What are put and get pointers?
Explain the concept of memory leak?
How can you link a c program with a c function?
Is rust better than c++?
Why should you learn c++?
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
What is abstraction c++?
Explain the difference between overloading and overriding?
What is low level language in simple words?