What is the difference between public, private, protected
inheritance?
Answer Posted / vivek kumar kaushal
Public: this is member function of its own and anyother
class.
Private: Class member access within its class.
Protected:this is member function to its own and derived
class.
| Is This Answer Correct ? | 34 Yes | 5 No |
Post New Answer View All Answers
What is a class template in c++?
what is Loop function? What are different types of Loops?
Can we sort map in c++?
Why c++ is called oop?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
What are the various compound assignment operators in c++?
Why do we use classes in programming?
What is the use of endl in c++?
Which field is used in c++?
Is java made in c++?
What is the difference between set and map in c++?
Explain the uses oof nested class?
write a programme to get a character and thier ASCII value
What is the keyword auto for?
What is the function of I/O library in C++ ?