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 difference between object-oriented programming and procedural programming?
How one would use switch in a program?
What is ifstream c++?
What is a c++ vector?
Do you know the problem with overriding functions?
Explain the uses oof nested class?
What is the use of default constructor?
What is struct c++?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
What is a c++ class?
What is c++ similar to?
What is constructor in C++?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
What is the use of c++ programming language in real life?
What is istream and ostream in c++?