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
Differentiate between the manipulator and setf( ) function?
What is scope in c++ with example?
Can a list of string be stored within a two dimensional array?
What is array in c++ pdf?
Explain rtti.
What is the real purpose of class – to export data?
What is prototype in c++ with example?
Why the usage of pointers in C++ is not recommended ?
Can a built-in function be recursive?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What is the two main roles of operating system?
What is the best free c++ compiler for windows?
Explain about templates of C++.
the first character in the variable name must be an a) special symbol b) number c) alphabet
When do we run a shell in the unix system?